Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

C# WinForms: My DataGridView does not grow properly

I have a DataGridView that grows up to a point, as new rows are added. But then it stops growing and the new rows are added but not visible. There is no scroll bar, which is the primary problem.

I have on problem with the DataGridView growing up to a point where it grows no longer. But at that point I need a scroll to appear so the user can scroll down to see all those new rows added.

What property am I missing?

Thanks!
Avatar of asfahani
asfahani

DataGridView1.ScrollBars = ScrollBars.Both
or manually set the scrollbars property of the datagridview from the designer mode to "both"
Avatar of curiouswebster

ASKER

It was already set to Both.
check if columns property Frozen is set to True
Where do I find that property? I construct the columns in code, but use the Designer to set the properties of the DataGridView.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I saw the AutoScroll property of the Form was false, so Ii set it to true.

My other problem is to get the DataGridView to understand what is it's containing object. I place it indie a Tab Control and it ignores that. I put in inside a Group Box and it ignores that as well. I will post that other question.
Thanks.

Below is the bigger problem: I can not get the DataGridView to appear anywhere near it's supposed to be, according to the Designer.

https://www.experts-exchange.com/questions/27723484/What's-involved-in-using-tabs-on-a-WinForms-dialog.html?anchorAnswerId=37993046#a37993046