void setUpDownAlignButton_Click(object sender, EventArgs e)
{
DomainUpDownCell domainUpDownCell1 = this.gcMultiRow1[0, 0] as DomainUpDownCell;
domainUpDownCell1.ShowSpinButton = CellButtonVisibility.ShowAlways;
if (domainUpDownCell1.UpDownAlign == LeftRightAlignment.Left)
{
domainUpDownCell1.UpDownAlign = LeftRightAlignment.Right;
}
else
{
domainUpDownCell1.UpDownAlign = LeftRightAlignment.Left;
}
label.Text = "Click the button repeatedly, the UpDownAlign property will take effect.";
}
Private Sub setUpDownAlignButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setUpDownAlignButton.Click
Dim domainUpDownCell1 As DomainUpDownCell = TryCast(Me.gcMultiRow1(0, 0), DomainUpDownCell)
domainUpDownCell1.ShowSpinButton = CellButtonVisibility.ShowAlways
If domainUpDownCell1.UpDownAlign = LeftRightAlignment.Left Then
domainUpDownCell1.UpDownAlign = LeftRightAlignment.Right
Else
domainUpDownCell1.UpDownAlign = LeftRightAlignment.Left
End If
label.Text = "Click the button repeatedly, the UpDownAlign property will take effect."
End Sub