How I can search through all row of my grid and detect only row with checkbox column checked ? ( Note : user change value and select checkbox at run time ... )
i use this code and got an error :
------------------------------------------------------------------------------------------------------------------------------------
Error :
System.NullReferenceException: 'Object reference not set to an instance of an object.'
Telerik.WinControls.UI.GridViewCellInfo.Value.get returned null.
------------------------------------------------------------------------------------------------------------------------------------
Code :
IList<GridViewRowInfo> gridRows = new List<GridViewRowInfo>();
foreach (GridViewRowInfo rowInfo in radGridView.ChildRows)
{
bool isChecked = (bool)rowInfo.Cells["CheckboxColumn"].Value;
if (isChecked == true)
{
gridRows.Add(rowInfo);
}
}
------------------------------------------------------------------------------------------------------------------------------------