I have bind a bit column of database into windows grid. The column shows check box, after edit the boolean column, when I am going to save the data, the boolean cell return false, while I have check the cell.
The sample code is:
For i=0 to grdMenu.RowCount-1
Dim PAdd as Object = Nothing
PAdd = grdMenu.Rows(i).Cell("Add").Value
Next
My bolean column name is Add.
The PAdd returns flase, whether I have checked the cell as true. I have also tried like
PAdd = grdMenu.Rows(i).Cell("Add").CellElement.Value
Please help
The sample code is:
For i=0 to grdMenu.RowCount-1
Dim PAdd as Object = Nothing
PAdd = grdMenu.Rows(i).Cell("Add").Value
Next
My bolean column name is Add.
The PAdd returns flase, whether I have checked the cell as true. I have also tried like
PAdd = grdMenu.Rows(i).Cell("Add").CellElement.Value
Please help