Reputation: 1569
I am trying to set up datagridview scrollbars, but I can't seem to do it...
The code With what I am doing it:
dgrDataGridView.Height = 320;
dgrDataGridView.Dock = DockStyle.None;
dgrDataGridView.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
dgrDataGridView.ScrollBars = ScrollBars.Both;
Is there any mistake or am I missing something in there?
Upvotes: 1
Views: 4430
Reputation: 1569
Solved it by myself. Apparently the datagridview was bigger than the windows form, therefore, I wasn't able to see the scroll bars.
Upvotes: 2
Reputation: 602
DataGridView
Scrollbars
are auto visible when data exceeded from data grid visible size both scrollbar
wil be visible
Upvotes: 0