A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Thursday, July 24, 2008

Datagridview

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:

Originals Enjoy