Spread Silverlight Documentation > Developer's Guide > Managing Data > Sorting Data |
You can sort data in the control and specify a column or row index to sort on as well as the sort criteria.
Use the SortRange method to sort data.
The following example sorts a range of cells.
C# |
Copy Code
|
---|---|
for (int i = 0; i < 10; i++) private void Button_Click(object sender, RoutedEventArgs e) |
VB.NET |
Copy Code
|
---|---|
For i As Integer = 0 To 9 Private Sub Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) |