Hi Andrey,
The attached sample implements the ListWrapper class to freeze the rows from sorting in a grid. It also support the multicolumn sorting in a grid. Please try this and let me know if this helps.
[C#]
//set either a Datatable or IList as datasource with FreezeRows
private void SetDataSource(object dataSource)
{
ListWrapper lw = this.gridDataBoundGrid1.DataSource as ListWrapper;
if(lw != null)
lw.UnWireGrid(this.gridDataBoundGrid1);
lw = dataSource is DataTable ? new ListWrapper((DataTable)dataSource) : new ListWrapper((IList)dataSource);
this.gridDataBoundGrid1.DataSource = lw;
lw.WireGrid(gridDataBoundGrid1); // to tie in the UI
//just for timing purposes
lw.SortStarting += new EventHandler(lw_SortStarting);
lw.SortCompleted += new EventHandler(lw_SortCompleted);
//Freeze the rows from Sorting.....
lw.FreezeSortingStartIndex = 0;
lw.FreezeSortingEndIndex = 5;
}
Please refer this.
http://websamples.syncfusion.com/samples/Grid.Windows/FreezeRowsFromSortinggdbg/main.htmBest regards,
Haneef