Datagridview Combobox Cell Max Dropdown无法正常工作

时间:2013-06-24 01:13:25

标签: vb.net datagridview combobox

不知何故,当我要求时,它仍然会显示超过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)

0 个答案:

没有答案