Groups | Blog | Home
all groups > dotnet faqs > january 2006 >

dotnet faqs : DataGridView Scrollbars missing


dbuchanan
1/10/2006 11:51:14 AM
Hello,

My dataGridView is configured with the "ScrollBars" set to both.

When the form is displayed no scroll bars appear. Therefore I don't
have access to the columns beyond the right side of the window!

If I set the property in code "dgv.ScrollBars = ScrollBars.Both" The
scroll bars *still* don't appear.

What's up? They used to appear.

How can I get the scroll bars back?

Thank you,
dbuchanan
dbuchanan
1/10/2006 12:25:39 PM
I discovered when, by not why I lost the scroll bars.

I discovered this by restoring a backup and going forward with my
recent changes. When I added a new column to the dgv the scroll bars
disappeared from the dgv on the form design surface.

The reason I added the new column was because the underlying source
table had a column added so I updated the dataset and then went on to
update the datagrid view.

I need to know. How do I restore the scroll bar to the dgv?

dbuchanan
AddThis Social Bookmark Button