AD
Administrator
Syncfusion Team
June 20, 2005 08:49 AM UTC
You can save the Sort property on teh DataView associated with the datasource before you refresh, an dthen reset this property after you refresh.
CurrencyManager cm = this.grid.BindingContext[this.grid.DataSource, this.grid.Daatmember] as CurrencyManager;
DataView dv = cm.List as DataView;
string saveSort = dv.Sort;
// do your refresh
dv.Sort = saveSort;
AD
Administrator
Syncfusion Team
June 20, 2005 06:15 PM UTC
thanks !!! this will help ...
>You can save the Sort property on teh DataView associated with the datasource before you refresh, an dthen reset this property after you refresh.
>
>CurrencyManager cm = this.grid.BindingContext[this.grid.DataSource, this.grid.Daatmember] as CurrencyManager;
>DataView dv = cm.List as DataView;
>string saveSort = dv.Sort;
>
>// do your refresh
>
>dv.Sort = saveSort;
>
>