What I am trying to do is hide a textbox while my radgrid is in Edit mode, but when its in insert mode I want to show it. I am using the radgrid_ItemDatabound event to try to mange this in isinEditMode. but when I do this it hides it on insert or edit mode. I want to just hide the textbox on Editmode.
If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then Dim editedItem As GridEditableItem = DirectCast(e.Item, GridEditableItem) Dim search As TextBox = CType(editedItem.FindControl("txtSearch"), TextBox) search.Visible = FalseEnd If