Posted 8 September 2017, 2:07 pm EST
Iam loading my grid where the first column is a checkbox. By default, I have all the checkboxes in the Grid as checked when I load my grid.
I want to have a button on my page when clicked it should make all checkboxes unchecked. And when I click it again, it should check them all.
I tried using the following code in the button click event but it didnt work properly.
If BtnCheckall.Text = "UnCheck All" Then
FPspread1.ActiveSheet.Columns(0).DataField = 0
BtnCheckall.Text = "Check All"
FPspread1.ActiveSheet.Columns(0).DataField = 1
BtnCheckall.Text = "UnCheck All"
Any help is appreciated.