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
105
Programmatically clearing selected grid rows
posted

Hello.

We recently upgraded from the 8.2 version of NetAdvantage for WPF to the 9.2 version.  After the upgrade, we're seeing an issue where code that was working to programmatically clear selected rows is no longer functioning properly.  Here's the simple code that we're using:

this.ourGrid.SelectedItems.Records.Clear();

Is there a new 9.2 way to clear all of the selected records in the grid?

Parents
  • 69686
    posted

    Hello,

    I tested the Clear method and it seems to work correctly. Another alternative is you to use commands :

                xamDataGrid1.ExecuteCommand(DataPresenterCommands.ClearAllSelected);

    Please note that there may be an active record when you clear the selected. The active record is not a selected record.

Reply Children