user1300113
user1300113

Reputation: 11

C# DataGridView- How show horizontal scroll

I added datagridview on form. set property- scrollBar : Both dynamically I add data in datagridview . Appears vertical scroll but horizontal isn't present.

How can i show horizontal scroll. Thanks

Upvotes: 0

Views: 3419

Answers (1)

Tamas Ionut
Tamas Ionut

Reputation: 4410

It works fine. It depends if your DataGridView control has the width large enough to hold the columns you have in your data source: if it does, then no horizontal scroll will appear.

Set the width property to a smaller value and the horizontal scroll will be present.

The same with vertical scroll. They both appear only when the control can't display the data.

Upvotes: 2

Related Questions