Click here to Skip to main content
11,713,237 members (82,783 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
my devexpress grid is not refresh data but data is inserted but after grid not refresh. solve my issue?my codes here
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 2-Feb-12 19:52pm
Vasim8892.3K
Edited 3-Feb-12 16:20pm
v2
Comments
Rajesh Anuhya at 3-Feb-12 22:20pm
   
Edited: Spelling, readabulity
--RA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hi

use
grid.databind()
  Permalink  
Comments
Vasim889 at 3-Feb-12 2:14am
   
not working.
palraj001 at 3-Feb-12 2:32am
   
how did you bind data in Grid?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  

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

  Print Answers RSS
0 CHill60 335
1 Sergey Alexandrovich Kryukov 290
2 OriginalGriff 200
3 Andy Lanng 165
4 Maciej Los 130
0 CHill60 335
1 Sergey Alexandrovich Kryukov 300
2 OriginalGriff 230
3 Andy Lanng 160
4 Maciej Los 130


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 3 Feb 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100