You might want to update and store a counter variable in the ViewState or the
Session upon each successful update (which marks an Edit).
For example if you were using SqlDataSource object with your GridView then
you might handle the SqlDataSource.Updated event:
Protected Sub SqlDataSource_Updated(sender As Object, e As
SqlDataSourceStatusEventArgs)
If e.AffectedRows > 0 Then
dim iCounter as Integer
If Not ViewState("RecordsEditedCounter") Is Nothing Then
iCounter= ViewState("RecordsEditedCounter") + 1
Else
iCounter = 1
End If
ViewState("RecordsEditedCounter")= iCounter
End If
End Sub
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"P K" wrote:
I have a Datagridview.
I only edit couple of columns.
No new rows are added.
I need to know the count of "rows" that were modified.
how do I acheive this?