New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Hide the Currently Edited Row
When you use EditForms edit mode you may prefer to hide the currently edited row (which by default is displayed above the edit form) and merely show that edit form. You can undertake this task by following the instructions below:
-
Subscribe to the PreRender event of your grid instance
-
Traverse the grid items and find the one that is currently in edit mode
-
Set its Visible property to false
C#
protected void RadGrid1_PreRender(object sender, System.EventArgs e)
{
foreach (GridItem item in RadGrid1.MasterTableView.Items)
{
if (item is GridDataItem && item.Edit)
{
item.Visible = false;
}
}
}