are you using your own TableStyle, you might want to set its AllowSorting too, seealso see some solutionshttp://groups.google.com/groups?hl=en&lr=&selm=7aa779d0.0304031231.765d861%40posting.google.com
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1083q

解决方案 »

  1.   

    如果允许排序,排序后,从CurrentCell读出的数据并不是显示的数据,而是排序列之前那一行的数据!真是头疼呀!
      

  2.   

    Public Class DataGridObject
        Inherits DataGrid
        Protected Overrides Sub OnMouseDown(ByVal e As System.Windows.Forms.MouseEventArgs)
            Dim pt As System.Drawing.Point = New Point(e.X, e.Y)
            Dim hti As DataGrid.HitTestInfo = Me.HitTest(pt)
            If hti.Type = DataGrid.HitTestType.ColumnHeader Then
                Return
            End If
            MyBase.OnMouseDown(e)
        End Sub
    End Class
      

  3.   

    我以前查过的,你搜索一下,CSDN里面以前有的,问问题前先查一下,免得人家老回答.浪费.