void setSortedButton_Click(object sender, EventArgs e)
{
DomainUpDownCell domainUpDownCell1 = this.gcMultiRow1[0, 0] as DomainUpDownCell;
if (domainUpDownCell1.Sorted)
{
//set Sorted property from true to false, the all items' sorted state cannot be restored to unsorted.
domainUpDownCell1.Sorted = false;
}
else
{
//set it to true, the all items' will change to the sorted state.
domainUpDownCell1.Sorted = true;
}
label.Text = "Click the button, the all items in the Items (7,3,5,1) property will be sorted to (1,3,5,7)";
}
Private Sub setSortedButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setSortedButton.Click
Dim domainUpDownCell1 As DomainUpDownCell = TryCast(Me.gcMultiRow1(0, 0), DomainUpDownCell)
If domainUpDownCell1.Sorted Then
'set Sorted property from true to false, the all items' sorted state cannot be restored to unsorted.
domainUpDownCell1.Sorted = False
Else
'set it to true, the all items' will change to the sorted state.
domainUpDownCell1.Sorted = True
End If
label.Text = "Click the button, the all items in the Items (7,3,5,1) property will be sorted to (1,3,5,7)"
End Sub