finding modified rows count in datagridview
hey guys..how can i find how many rows are modified by the user in my datagridview?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jean PaulPosted Feb 7, 2011, 7:03 AM
But I can provide one lengthy solution:
On the DataGridView CellEndEdit, use the DataGridViewCellEventArgs object
to get the edited row index. You can push the rowindex to a list ensuring no duplicates
The total of listcount will provide number of changed rows.
Sam HobbsPosted Feb 8, 2011, 12:15 PM
Jean PaulPosted Feb 8, 2011, 5:22 AM
controls/methodology are you using?
In my applications I use DataGridView customized with IList bound to it.
Erdinc KolukisaPosted Feb 8, 2011, 4:49 AM
Sam HobbsPosted Feb 7, 2011, 11:48 PM
Jean PaulPosted Feb 7, 2011, 8:07 AM
Erdinc KolukisaPosted Feb 7, 2011, 7:41 AM