BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
''subscribe to the event
Dim cm As CurrencyManager = Me.BindingContext(Me.GridDataBoundGrid1.DataSource, Me.GridDataBoundGrid1.DataMember)
Dim ibl As IBindingList = cm.List
AddHandler ibl.ListChanged, AddressOf ibl_ListChanged
''the handler
Private Sub ibl_ListChanged(ByVal sender As Object, ByVal e As ListChangedEventArgs)
If e.ListChangedType = ListChangedType.ItemAdded Then
Console.WriteLine(Me.GridDataBoundGrid1.Model.RowCount)
End If
End Sub
//subscribe to the event CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember]; IBindingList ibl = cm.List as IBindingList; if(ibl != null) ibl.ListChanged += new ListChangedEventHandler(ibl_ListChanged); //the handler private void ibl_ListChanged(object sender, ListChangedEventArgs e) { if (e.ListChangedType == ListChangedType.ItemAdded) Console.WriteLine(Me.GridDataBoundGrid1.Model.RowCount); }