I have form with grid, the grid is filling from datasource, I have added a checkbox field into grid row. There is another checkbox in the form with label select all. I want if the select all checkbox is checked then all the checkboxes with grid rows must be checked, if select all is unchecked then all the grid associated checkboxes must be unchecked.
What exactly “all” means? For example, if you display some records and a user adds some filters, should should it honor or ignore user-defined filters? Should it mark all records corresponding to the query or just those visible in the grid?
with select all checkbox all the appearing checkboxes in grid row (grid row checkbox is not from datasource table) will checked and also for unchecking.
I have already did this thing, Just now I want to show to the user that all the rows are selected. I means just to mark the checkboxes in the grid by checking select all, and unmark the checkboxes in the grid by unchecking select all.
If you use a map, you can add / remove all records when the filter changes, but it may have negative impact on performance, if you have many records. One improvement may be using a TempDB table (AX 2012) instead of the collection in memory.
Or you can consider filtering for All and None as special cases: