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