Reputation: 232
I have problem with scroll bars in my datagridview. I try to set scroll bar, but it never showing. How can i add the scroll bars in my datagridview? This my images of datagridview, sorry i cant show the code.
Upvotes: 0
Views: 425
Reputation: 3388
Also make sure that none of the DataGridViewColumns
have Frozen
property set to true. Otherwise you won't get horizontal scroll bar.
DataGridViewColumn.Frozen = false
Upvotes: 1
Reputation: 2746
You should set the ScrollBars
property, like this:
dataGridView1.ScrollBars = ScrollBars.Both;
If it's already set correctly, check that:
dataGridView1.AutoSize = false;
Upvotes: 2