Hi. I am trying to remove rows and I get "formatException".
I've try to remove the rows like that:
grid.GridElement.BeginUpdate();
foreach (GridViewDataRowInfo row in grid.Rows)
{
if (row.Cells[1].Value.ToString() == "False")
{
grid.Rows.Remove(row);
}
}
grid.GridElement.EndUpdate();
AND like that:
grid.GridElement.BeginUpdate();
IEnumerable<GridViewDataRowInfo> uncheckedRows = grid.Rows.Where<GridViewDataRowInfo>(row => row.Cells[1].Value.ToString() == "False");
foreach (GridViewDataRowInfo uncheckedRow in uncheckedRows)
grid.Rows.Remove(uncheckedRow);
grid.GridElement.EndUpdate();
BOTH WAYS DON'T WORK...