DataGrid Sort icon

  • Thread starter Thread starter Carlos Moreira
  • Start date Start date
C

Carlos Moreira

Hello,

How can I force the sorting icon to apear in the header when the datagrid
first shows (before clicking any column header).

Thanks.
 
ironically I just did this..

Dim cm as currencymanager

cm = BindingContext(myDataGrid.DataSource, myDataGrid.DataMember)

ctype(cm.List, DataView).Sort = "mySortColumn"

cm = nothing
-CJ
 
Whow !!!!

Great answer, thanks

CJ Taylor said:
ironically I just did this..

Dim cm as currencymanager

cm = BindingContext(myDataGrid.DataSource, myDataGrid.DataMember)

ctype(cm.List, DataView).Sort = "mySortColumn"

cm = nothing
-CJ
 
Back
Top