I am doing something like the below. When I try to do a delete, however, I'm getting a NullReferenceException. Apparently, the FindControl doesn't find the control on delete, so when it tries to access the .Text, it causes the exception. Shouldn't it find the control?
Private Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand Select Case e.CommandName Case RadGrid.PerformInsertCommandName Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem) Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text PerformInsert(val) Case RadGrid.UpdateCommandName Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem) Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text PerformUpdate(val) Case RadGrid.DeleteCommandName Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem) Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text PerformDelete(val) End SelectEnd Sub