[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.UnboundSort.SortUnboundGrid

SortUnboundGrid Method

SortUnboundGrid(C1FlexGrid, IList<UnboundSortDescription>, int, int)

Sorts the rows in an unbound grid.

Declaration
public static void SortUnboundGrid(C1FlexGrid flex, IList<UnboundSortDescription> sortDescriptions, int startRow, int endRow)
Parameters
Type Name Description
C1FlexGrid flex

Grid to be sorted.

IList<UnboundSortDescription> sortDescriptions

List of UnboundSortDescription objects that specify the columns to sort on.

int startRow

First row in the range to be sorted.

int endRow

Last row in the range to be sorted.

SortUnboundGrid(C1FlexGrid, IList<UnboundSortDescription>)

Sorts the selected rows in an unbound grid.

Declaration
public static void SortUnboundGrid(C1FlexGrid flex, IList<UnboundSortDescription> sortDescriptions)
Parameters
Type Name Description
C1FlexGrid flex

Grid to be sorted.

IList<UnboundSortDescription> sortDescriptions

List of UnboundSortDescription objects that specify the columns to sort on.

Remarks

If only one row is selected, this method sorts the whole grid.