I am using a System.Windows.Forms.ListView
with checkboxes = true
.
I can see that when the list items are more than what can fit, I get a horizontal scroll bar. I tried to find any properties to change scroll bar orientation.
Is there any way to make it scrollable in vertical direction?
You need to Set
Listview1.Scrollable = true;
Listview1.View = View.Details
This will only work correctly if you have added some columns in your Listview1, So add a dummy column. like,
ColumnHeader header = new ColumnHeader();
header.Text = "";
header.Name = "col1";
listView1.Columns.Add(header);
I think the only way to force the ListView scroll vertically and view items as "Title" mode, is this :
ListView.View = View.Details;
ListView.HeaderStyle = ColumnHeaderStyle.None;
and add JUST ONE Column
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With