Good day,
I'm using the ASP.NET ajax grid version 2008.1.619.35. I'm trying to test if a row item within the grid has been set to editmode. I tried checking the IsInEditMode row property on the row item. The IsInEditMode property kept returning a false even though I know the row was indeed in edit mode.
Now I did manage to find a work around using the same code as above with the following change
I want to confirm if there is a bug with the property IsInEditMode.
I'm using the ASP.NET ajax grid version 2008.1.619.35. I'm trying to test if a row item within the grid has been set to editmode. I tried checking the IsInEditMode row property on the row item. The IsInEditMode property kept returning a false even though I know the row was indeed in edit mode.
protected void RadGrid1_EditCommand(object source, GridCommandEventArgs e) |
{ |
//Is it a GridDataItem |
if (e.Item is GridDataItem) |
{ |
//Get the instance of the right type |
GridDataItem dataBoundItem = e.Item as GridDataItem; |
if (dataBoundItem.OwnerTableView.Name == "OrderHeader") |
{ |
if (Convert.ToInt16(dataBoundItem["OrderStatusID"].Text) == 1) |
{ |
if (e.Item.IsInEditMode) |
{ |
Debug.Write("Edit Mode!); |
} |
} |
} |
} |
} |
Now I did manage to find a work around using the same code as above with the following change
if (e.Item.Edit) |
{ |
Debug.Write("Edit Mode!"); |
} |
I want to confirm if there is a bug with the property IsInEditMode.