PC Review


Reply
Thread Tools Rate Thread

DataGrid Horizontal Scroll Bar problem

 
 
Grant Smith
Guest
Posts: n/a
 
      11th Jan 2005
I am currently trying to expand upon the default datagrid control using
VB.NET. I have noticed one quirk about it that I cna't seem to get
around. If I have a datagrid that doesn't display all of the columns
(say the grid is only big enough to display 2 and there are 3 columns
total). If you go to the last column (so 3 of 3 in this example) and
scroll either up from the top cell being displayed in the datagrid or
down from the bottom cell being displayed (granted there are more rows
than are currently displayed in the datagrid) you'll see that when to
bring up the next cell from the bottom and we're at the far right
column and part of the 2nd column is displayed to the left it will
force the 2nd column to be fully displayed and the 3rd column which
you're currently editing to be the one that is cut off. I was
wondering if anyone knew which event to override so that I can force
the horizontal scroll bar to keep the same position as I scroll down
the grid rather than jumping back and forth. I hope this is clear
enough, if not let me know.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9zZXBoIE1DQUQ=?=
Guest
Posts: n/a
 
      11th Jan 2005

Jan. 10, 2005

I can picture what you mean and I think I have seen that before, but
why can't you just widen the datagrid, because then there won't be a scroll
bar.


Joseph MCAD


"Grant Smith" wrote:

> I am currently trying to expand upon the default datagrid control using
> VB.NET. I have noticed one quirk about it that I cna't seem to get
> around. If I have a datagrid that doesn't display all of the columns
> (say the grid is only big enough to display 2 and there are 3 columns
> total). If you go to the last column (so 3 of 3 in this example) and
> scroll either up from the top cell being displayed in the datagrid or
> down from the bottom cell being displayed (granted there are more rows
> than are currently displayed in the datagrid) you'll see that when to
> bring up the next cell from the bottom and we're at the far right
> column and part of the 2nd column is displayed to the left it will
> force the 2nd column to be fully displayed and the 3rd column which
> you're currently editing to be the one that is cut off. I was
> wondering if anyone knew which event to override so that I can force
> the horizontal scroll bar to keep the same position as I scroll down
> the grid rather than jumping back and forth. I hope this is clear
> enough, if not let me know.
>
>

 
Reply With Quote
 
Grant Smith
Guest
Posts: n/a
 
      11th Jan 2005
I can't make the grid any bigger because of the form size as well as
I'm trying to restrict the form size to less than 800x600.

 
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
DataGrid & Horizontal Scroll Bar vijay Microsoft Dot NET Compact Framework 1 12th Nov 2007 09:16 PM
How can i make the horizontal scroll scroll to end of page? trint Microsoft C# .NET 1 9th May 2007 08:07 PM
Datagrid horizontal scroll =?Utf-8?B?RGluY2VyIFV5YXY=?= Microsoft Dot NET Framework Forms 3 22nd Oct 2004 07:39 AM
DataGrid - Vertical/Horizontal scroll sumit Microsoft ASP .NET 3 18th Nov 2003 09:14 PM
datagrid horizontal scroll bar QT Microsoft Dot NET 0 31st Aug 2003 01:35 PM


Features
 

Advertising
 

Newsgroups
 


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