Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
WinGrid Changes
posted

Does the wingrid have a property that can be viewed to see if a row has been modified, added, or deleted.

 

Thanks

Sal

Parents
  • 69832
    Suggested Answer
    Offline posted

    If you are bound to a DataTable, and the UltraGridRows represent DataRowView objects, you can get a reference to the underlying DataRowView via the UltraGridRow's ListObject property (upcast it to typeof(DataRowView)). Once you have that, you can get a reference to the underlying DataRow via that DataRowView's Row property. DataRow exposes a RowState property, which contains information like whether the row was added, deleted, or modified.

    Note that UltraGridRow also exposes a DataChanged property, which tells you if the data in any cells have been modified.

Reply Children