This question is locked. New answers and comments are not allowed.
Hi,
I'm seeing some strange behaviour with the GridViewSelectColumn and its checkbox header when working with a databound collection. I'll try to describe here what I see:
1. If you check the header checkbox to 'select all' it becomes checked and all records are selected (expected behaviour). If the grid is databound to another collection, none of the records are selected, but the header checkbox remains checked (not expected). The checkbox should be cleared if there are any rows below it unselected.
2. Using paging. If you select the header checkbox, it and all rows displayed below are selected (expected). If you go on to page 2, the checkbox is still checked, even though now rows below are selected. I would expect it to be cleared in this situation. If you then click the checkbox in the header, it clears and no rows are selected (expected behaviour). If you then click it again, all the rows below are selected, but the checkbox in the header remains unselected - I would expect the checkbox to be checked at this point! If I then go back to page 1, all the rows are checked, but the checkbox in the header isn't. I can then click it twice to unselect the rows on page 1 and then return to page 2. The rows are all still selected, but the checkbox in the header isn't.
Is this something that's already down to be fixed?
Thanks, James.
I'm seeing some strange behaviour with the GridViewSelectColumn and its checkbox header when working with a databound collection. I'll try to describe here what I see:
1. If you check the header checkbox to 'select all' it becomes checked and all records are selected (expected behaviour). If the grid is databound to another collection, none of the records are selected, but the header checkbox remains checked (not expected). The checkbox should be cleared if there are any rows below it unselected.
2. Using paging. If you select the header checkbox, it and all rows displayed below are selected (expected). If you go on to page 2, the checkbox is still checked, even though now rows below are selected. I would expect it to be cleared in this situation. If you then click the checkbox in the header, it clears and no rows are selected (expected behaviour). If you then click it again, all the rows below are selected, but the checkbox in the header remains unselected - I would expect the checkbox to be checked at this point! If I then go back to page 1, all the rows are checked, but the checkbox in the header isn't. I can then click it twice to unselect the rows on page 1 and then return to page 2. The rows are all still selected, but the checkbox in the header isn't.
Is this something that's already down to be fixed?
Thanks, James.