Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my devexpress grid is not refresh data but data is inserted but after grid not refresh. solve my issue?my codes here
VB
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
Posted
Updated 12-Jun-17 10:00am
v2
Comments
Rajesh Anuhya 3-Feb-12 22:20pm    
Edited: Spelling, readabulity
--RA

hi
use
VB
grid.databind()
 
Share this answer
 
Comments
Vasim889 3-Feb-12 2:14am    
not working.
palraj001 3-Feb-12 2:32am    
how did you bind data in Grid?
I've had some similar issues and setting the data source to null and then back to the actual data source has helped. If that doesn't work for you I suggest contacting DevExpress support center[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900