In virtual mode you should implement sorting on the data source that provides data for displaying in the FlyGrid.
In this case you should handle FlyGrid.ColumnSortChanging event to handle column sort order change and sort data within handler of this event.
If sort procedure is succesfully finisihed set sorted argument of this event to true.
[c#]
private void InitFlyGrid(FlyGrid flyGrid)
{
//connect to the ColumnSortOrderChanging
flyGrid.ColumnSortOrderChanging +=
ColumnSortOrderChangingHandler(OnColumnSortChanging);
}
private void OnColumnSortOrderChanging(object sender, object column, SortOrder value, ref bool sorted)
{
sorted = SortOnColumns(flyGrid.Columns.SortColumns);
}
private void SortOnColumns(Coumn[] sortColumns)
{
//here is your sorting procedure
}