Check Box Select/Deselect All on Grid

时间:2024-01-07 16:34:32
The below function is to be used on a grid with multiple check boxes. Place the code behind a FieldChange event and users will have the option to Select or Deselect grid rows all at once.
Function selectAllRows To ).GetRowset(Scroll.scroll_table);
/*Call Function*/ selectAllRows(&rs);

The same code would work for multiple check boxes "Deselect All", just change the name of the function and line &row.Selected = True; to &row.Selected = False;

Make sure the Multiple Row (Check Box) is checked on the grid properties.

Check Box Select/Deselect All on Grid