At the moment I am setting the visibilty of controls on the itemdatabound event handler after detecting if row is in insert/edit mode.
This seems quite cumbersome to me, is there a better way to do it?
Thanks
Luis
| if (e.Item is GridEditFormItem && e.Item.IsInEditMode) |
| { |
| (e.Item.FindControl("txtUserName") as WebControl).Enabled = false; |
| } |
This seems quite cumbersome to me, is there a better way to do it?
Thanks
Luis