Endelm
asked on
C# WinForms - Scroll in a DataGrid
Hi,
I'm displaying a lots of columns in a WinForms DataGrid control.
My columns are so many that they're all squashed up against each other.
The problem is that I can't seem to find some kind of property like a scrollbar or something. Isn't there a property on the DataGrid that enables a scrollbar?
Thank you.
I'm displaying a lots of columns in a WinForms DataGrid control.
My columns are so many that they're all squashed up against each other.
The problem is that I can't seem to find some kind of property like a scrollbar or something. Isn't there a property on the DataGrid that enables a scrollbar?
Thank you.
ASKER
I'm talking about horizontal scrolling of the DataGridView control.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you REA_ANDREW.
What property is the scroll bar changing?
Thank you.
What property is the scroll bar changing?
Thank you.
dataGridView1.ScrollBars = ScrollBars.Both;
Also handy:
dataGridView1.AutoSizeColu mnsMode = DataGridViewAutoSizeColumn sMode.AllC ells;
AllCells is slow but other values are also possible.
Kind regards,
Peter
Also handy:
dataGridView1.AutoSizeColu
AllCells is slow but other values are also possible.
Kind regards,
Peter
ASKER
System.Windows.Forms.DataG