Disable control while EditForm is active
Use CellEditorInitialize method.
protected void GridView_CellEditorInitialize (object sender, ASPxGridViewEditorEventArgs e)
{
if (!GridView.IsNewRowEditing)
{
if (e.Column.FieldName == FIELD_NAME)
{
e.Editor.ReadOnly = false;
e.Editor.ClientEnabled = false;
}
else
{
e.Editor.ReadOnly = true;
e.Editor.ClientEnabled = true;
}
}
}
Written by GangrenaGastrit
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Asp.net
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#