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
1890
Commit Modified Records
posted

I have a scenerio where when the user edits a record, the small icon of ‘modified record’ appears in the Record Selector area. After I save the changes (or even if I cancel the changes) and update the data source connected to the grid, that icon never goes away. Moreover, if the changes are successfully saved, the record remains highlighted, even though the active record has changed. After editing a few records, the grid looks like the picture attached. How do I fix it? I tried calling ExecuteCommand(DataPresenterCommands.CommitChangesToAllRecords) but that didn't work for me unless I was using it incorrectly.

Parents
No Data
Reply
  • 28407
    posted

    HI,

     The rowselector icon, is show because you have selected multiple records and or cells. It also appears if you have an ActiveRecord, which is a record ready to receive keyboard input.

     You can remove the icon by doing the following

     xgrid1.SelectedItems.Records.Clear();   

      xgrid1.SelectedItems.Cells.Clear();

      xgrid1.ActiveRecord = null;

     Sincerely,
     Matt

    Developer Support Engineer

Children