none
insert data from database in data grid view in c# RRS feed

  • Question

  • can you please help me and tell me how to insert data from database in data grid view in windows application ?????
    Tuesday, July 29, 2008 6:56 AM

Answers

  • You can use ADO.NET to connect to database and fetch the data into dataset. Then set the DataSource property of DataGridView controls as the DataSet. That should take care of binding the data to DataGridView.

    The following MSDN article has more details on DataBinding to DataGridView
    http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx
    Sundar Narasiman
    • Marked as answer by Zhi-Xin Ye Monday, August 4, 2008 6:49 AM
    Wednesday, July 30, 2008 6:52 AM