2014-03-31 80 views
0

我在Windows窗體中使用了checklistbox控件,在綁定後它可能會有超過100s的items.so正在考慮在多列中顯示checklistbox ,以便用戶選擇不滾動很多。 這可能嗎?checklistbox顯示多列

+0

我相信你可以[使用一個ListView爲(http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.checkboxes(V = vs.110)的.aspx)。 –

回答

1

請在您的CheckedListBox上設置MultiColumnTrue

checkedListBox1.MultiColumn = true; 

for (var i = 0; i < 20; i++) 
{ 
    checkedListBox1.Items.Add("Item " + i); 
} 

enter image description here

+0

工作完美.. –