不知何故,当我要求时,它仍然会显示超过10个值。这是否是正确的方式?
Dim c3 As New DataGridViewComboBoxColumn()
c3.HeaderText = "Stripes"
c3.DataSource = BndSrc
c3.Name = "Stripes"
c3.DataPropertyName = "Stripes"
c3.DisplayMember = "Stripes"
c3.ValueMember = "Stripes"
c3.DisplayStyleForCurrentCellOnly = False
c3.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing
c3.FlatStyle = FlatStyle.Standard
c3.SortMode = DataGridViewColumnSortMode.Automatic
c3.maxdrodownitems = 3
Me.DataGrid.Columns.Add(c3)