Home Forums WPF controls Xceed DataGrid for WPF Event when new row has been inserted

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25002 |

    Is there a way to capture an event when a new row has been inserted from either InsertionRow or programmatically?

    Imported from legacy forums. Posted by nat (had 354 views)

    Xceed Support
    Member
    Post count: 5658

    If your data source implements IBindingList, you can hook directly to the IBindingList.ListChanged event.

    The same goes for the CollectionChanged event if your data source implements INotifyCollectionChanged.

    The advantage of going through the collection is that you will efficiently receive notification from programmatic changes occuring outside the scope of the grid (and it will includes additions done through the InsertionRow).

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2672 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.