我有我的窗體上的xtragrid
(假設myXtraGrid
)Xtra Grid運行時分類數據?
我綁定一個datatable
:
myXtraGrid.DataSource = dtMyDataTable;
myXtraGrid.BestFitColumns();
比方說,我只有一個column
在datatable
命名"My Column"
,它有三個數據rows
作爲如下:
My Column
------
3
1
2
比對grid (on runtime)
,我點擊column header (My Column)
和數據排序
(3 1 2) ascending: (1 2 3)
我的問題是;我怎樣才能得到有序的數據爲Datatable
如下?
My Column
------
1
2
3
在runtime
我必須得到排序數據並處理它。
感謝朋友。
試試這個問題:http://stackoverflow.com/questions/11228449/how-to-get-the -xtragrid-filtered-sorted-sorted-datasource – scotru