APNSoft Controls [4.5.2.20] - API Reference
APNSoftDataGrid.SortRows Method 

Sorts the rows in the collection.

[Visual Basic]
Public Function SortRows() As GridColumn
[C#]
public GridColumn SortRows();

Return Value

Sorted column.

Example

[C#]
dg1.DataSource = ...
dg1.DataBind();
dg1.Columns["PostalCode"].Sorted = GridColumn.SortedValues.Ascending;
dg1.SortRows();

[Visual Basic]
dg1.DataSource = ...
dg1.DataBind()
dg1.Columns("PostalCode").Sorted = GridColumn.SortedValues.Ascending
dg1.SortRows()

See Also

APNSoftDataGrid Class | APNSoft.WebControls Namespace