conn.Open();
DataSet ds = new DataSet(); MySqlCommand command = new MySqlCommand("Select * from details", conn);MySqlDataAdapter da = new MySqlDataAdapter(command);da.Fill(ds, "details");command.ExecuteScalar();
GridView1.DataSource = ds;
GridView1.DataBind();
conn.Close();
return ds;
this program is showing all the data which is present in the table "details". but i want to view only 5 columns how can i?
Nandu..
Source Click Here.
No comments:
Post a Comment
Post your comments here: