Home Forums WPF controls Xceed DataGrid for WPF Curious LostFocus adapter.Update doesn’t work in this instan

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

    Hi,

    I am curious as to why this doesn’t work.

    If a user edits some data on a row and then clicks on another column in the same row. The LostFocus event fires. When this event fires I have a line of code like:
    adapter_Site_ID.Update(table_Site_ID);
    Which fires. However it doesn’t actually do the update.

    But if the user selects a different row that same event is fired and it does update the changes done to that row.

    Does anyone know why this is?

    Imported from legacy forums. Posted by David (had 1866 views)

    Xceed Support
    Member
    Post count: 5658

    The edit process ends when a row changes and not when a cell changes; therefore, even if you change cells in the same row, the “old” values are still contained in the row.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 2761 views)

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