Avatar of curiouswebster
Flag 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?

C#.NET ProgrammingASP.NET

Avatar of undefined
Last Comment

8/22/2022 - Mon

DataGridView1.ScrollBars = ScrollBars.Both

or manually set the scrollbars property of the datagridview from the designer mode to "both"

It was already set to Both.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

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.
Mike Tomlinson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.


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