How to get modified rows collection from DataGridView control?

  • Thread starter Thread starter Ecpl2010
  • Start date Start date
E

Ecpl2010

Guest
Hi,

I am using DataGridView control on WinForm to display data.​


For that,​

I have created DataTable.​

I have created 3 DataColumns and 3 DataRows.​


I have assigned that DataTable as the DataGridView.DataSource.​

Associate DataTable column with DataGridView column using DataPropertyName property.​


When I run the application, my table (i.e. DataTable created above) data is displayed correctly in DataGridView.​


One of the column in DataGridView is editable.​


Once user is edited all required cells of DataGridView, I want the list of all modifed rows.​

i.e. I want the DataTable with collection of modified rows.​


How can I get the modified rows from the DataGridView?​


Thanx in advance.​

Yagnesh​

Continue reading...
 
Back
Top