Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22406 | Dec 12,2004 05:58 AM UTC | Dec 12,2004 11:22 AM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
//Using the DataView.Sort CurrencyManager cm = grid.BindingContext[grid.DataSource, grid.DataMember] as CurrencyManager; if(cm != null) { DataView dv = cm.List as DataView; if(dv != null) { dv.Sort = "someColName desc"; } } //using the grid.Binder.Sort int colIndex = grid.Binder.NameToColIndex("someColName"); int field = grid.Binder.ColIndexToField(colIndex); grid.Binder.Sort(field);
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.