void setWrapButton_Click(object sender, EventArgs e) { DomainUpDownCell domainUpDownCell1 = this.gcMultiRow1[0, 0] as DomainUpDownCell; if (domainUpDownCell1.Wrap) { //set the Wrap to false, the all items' can not be shown circularly. domainUpDownCell1.Wrap = false; } else { //set the Wrap to true, the all items' can be shown circularly. domainUpDownCell1.Wrap = true; } label.Text = "Click the button, the all items' can (or cannot) be shown circularly when you click the UpDown button"; }
Private Sub setWrapButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setWrapButton.Click Dim domainUpDownCell1 As DomainUpDownCell = TryCast(Me.gcMultiRow1(0, 0), DomainUpDownCell) If domainUpDownCell1.Wrap Then 'set the Wrap to false, the all items' can not be shown circularly. domainUpDownCell1.Wrap = False Else 'set the Wrap to true, the all items' can be shown circularly. domainUpDownCell1.Wrap = True End If label.Text = "Click the button, the all items' can (or cannot) be shown circularly when you click the UpDown button" End Sub