PC Review


Reply
Thread Tools Rate Thread

DataGridView always displaying a Vertical scrollbar

 
 
=?Utf-8?B?QmlsbCBTcGFobg==?=
Guest
Posts: n/a
 
      18th Nov 2006
I have managed to always display a vertical scrollbar in a DataGridView by
subclassing the DataGridView and handling the
VerticalScrollBar.VisibleChanged event. The problem is that the horizonal
scrollbar appearance is based on the visible DataGridView view without the
vertical scrollbar. So if the user does a resize, about half of the last
column gets covered before the horizontal scrollbar appears.

It seems that DisplayRectangle tracks the correct visible size but I can't
find a way to change it that will effect the horizontal scrollbar.
Overriding DisplayRectangle did not work.

Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical scrollbar not appears in DatagridView Alhambra Eidos Desarrollo Microsoft C# .NET 0 11th Feb 2009 09:52 AM
DataGridView - Vertical ScrollBar Help Needed Tom Microsoft C# .NET 1 3rd Feb 2008 11:23 AM
Controlling vertical scrollbar position on DataGridView WinFormcontrol. JDeats Microsoft C# .NET 1 10th Jan 2008 08:16 PM
DataGridView vertical scrollbar freeze Oyvind Eriksen Microsoft Dot NET Framework 1 2nd Oct 2006 07:08 AM
Change width of datagridview vertical scrollbar steve Microsoft VB .NET 1 21st Aug 2006 12:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 AM.