Reputation: 11
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
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