Hi,
I have datakeyname value. I need to get a row using this key value out of Radgrid events. All the code
is in Radgrid events. Out of Radgrid events means, they suggest to loop thru
Rows and get a row like this:
Foreach (GridDataItem row in Radgrid1.Items)
{
If (row.GetDataKeyValue(“ID”).ToString() == “100”)
Row.Remove;
}
One more thing is that when that particular row is found, I need to delete it from grid.
But GridDatItem (row) doesn’t have delete or remove method. It has only dispose. I don’t think dispose
does the job of delete. I don’t want grid to be rebound after deleting row.
Please suggest how to do it. We are not using needsource event to bind grid. Our architecture will not
suit to use it. So, we bind the grid where ever necessary. I need to have this code for our page to work.
Thanks,
Prathiba.