why???
where are u getting the problem...
please post your code if possible
well! isnt there any need to use data reader??
well my code is
//connection as conn
strQuery = " SELECT * FROM table";
SqlCommand com1 = new SqlCommand(strQuery, conn);
DataSet ds=new DataSet();
SqlDataAdapter da=new SqlDataAdapter();
SqlDataReader dr = com1.ExecuteReader();
if (dr.Read())
{
da.Fill(ds,"table");
}
its not working i mean data is not displaying in the grid..and the exception that is shown is
"The SelectCommand property has not been initialized before calling 'Fill'."
(i asked u the same quest in codeproject.com...) and yea i tried doing it the exactly the same way u told but no rows returnd :(