i have UltraWebGrid Ver(8.1.20081.1000). Code Behind vb.net
I created the columns in server side including one check box column.
If select check box column i can able to get the check box column value in client side,
But i can't able to get the check box column value in in server side.
'*** Client Side i am using this Code
function grdLvAprRej_AfterCellUpdateHandler(gridName, cellId)
{
var myGrid = igtbl_getGridById(gridName);
var cell = igtbl_getCellById(cellId);
var check = cell.getValue();
alert(check);
}
'***
'*** Server Side i am using this code
for i = 0 to myGrid.rows.count
check = myGrid.Rows(0).Cells.FromKey("SelectC").Value
msgbox (check)
next
How can i get the check box column value in server side.
Please help me to do this.
isn't the checkbox supposed to be a boolean?
so are u looking for true or false to return? here is what i got:
c#:
string result;
foreach(UltraGridRow dRow in myGrid.Rows)
bool check = Convert.ToBoolean(dRow.Cells.FromKey("SelectC").Value);
result = check.ToString();
OR IN VB.NET:
For Each dRow As UltraGridRow In myGrid.Rows
Dim check As Boolean = Convert.ToBoolean(dRow.Cells.FromKey("SelectC").Value)
result = check.ToString()
Next
I also have same problem, used your check box code in server side it is working in all browsers but in ie11 without compatibility it is not working.