Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to get modified rows collection from DataGridView control?

$
0
0

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

 


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>