How to cancel edit mode in radgrid1_ItemCommand for C#?
I use the following code in radgrid1_ItemCommand, but doesn't work.-- the grid is still edit mode after the following line called. I want it out of the edit mode.
{
// if validation fails, can not edit -cancel edit mode
I use the following code in radgrid1_ItemCommand, but doesn't work.-- the grid is still edit mode after the following line called. I want it out of the edit mode.
if (e.CommandName == "Edit")
{
// if validation fails, can not edit -cancel edit mode
e.Item.Edit =
false;
}
Thanks!