Enkhay
Enkhay

Reputation: 232

Cannot Add the Scroll Bar in Datagridview

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.

enter image description here

Upvotes: 0

Views: 425

Answers (2)

Junaith
Junaith

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

etaiso
etaiso

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

Related Questions