Public Sub grid_RowInserting(ByVal sender As Object, ByVal e As DevExpress.Web.Data.ASPxDataInsertingEventArgs) Handles grid.RowInserting Try With cos .CustomerName = e.NewValues(0) .CustomerCode = e.NewValues(1) .CustomerDesc = e.NewValues(2) End With ocou.Insert(cos) If grid.IsLoading Then Dim prevIndex As Integer = grid.EditingRowVisibleIndex grid.CancelEdit() If prevIndex < 0 Then grid.StartEdit(0) Else grid.StartEdit(prevIndex) End If End If Catch ex As Exception End Try End Sub
grid.databind()
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)