473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Getting vertical scroll bar to work correctly after making datagrid multline

I've made a datagrid multiline (for anyone interested, I used an
adaptation of the code at
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp).

This has introduced a very serious issue: the vertical scroll bar
assumes that all row heights are the same, as the designers of the
datagrid seemed to not want to cater for the fact that a datagrid could
be made multi line.

This results in the scroll down functionality being completely wrong -
it stops short of the last row if some of the rows above this are multi
line (becuase it doens't realise how much height the rows take up).

The only solution to all this mess that I have come up with is to put
another scroll bar over the datagrid and to get this scroll bar to
scroll the grid. However, it is causing so many other issues that it
just isn't funny anymore!

So, I'm wondering, is there a proper way to get the datagrid's own
scroll bar to behave properly when the datagrid has been made
multiline? Is it possible to tell the vertical scroll bar the correct
height of all the rows instead of letting it assume that they are all
of a specific height?

I would seriously appreciate any help on this!

Greg.

May 15 '06 #1
1 1866
On 15 May 2006 03:56:59 -0700, "Greg" <gr*************@yahoo.co.uk> wrote:
I've made a datagrid multiline (for anyone interested, I used an
adaptation of the code at
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp).

This has introduced a very serious issue: the vertical scroll bar
assumes that all row heights are the same, as the designers of the
datagrid seemed to not want to cater for the fact that a datagrid could
be made multi line.

This results in the scroll down functionality being completely wrong -
it stops short of the last row if some of the rows above this are multi
line (becuase it doens't realise how much height the rows take up).

The only solution to all this mess that I have come up with is to put
another scroll bar over the datagrid and to get this scroll bar to
scroll the grid. However, it is causing so many other issues that it
just isn't funny anymore!

So, I'm wondering, is there a proper way to get the datagrid's own
scroll bar to behave properly when the datagrid has been made
multiline? Is it possible to tell the vertical scroll bar the correct
height of all the rows instead of letting it assume that they are all
of a specific height?

I would seriously appreciate any help on this!

Greg.

Contact the designer of the code you used and ask them how to solve the problem?

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
May 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: CoreyMas | last post by:
Hello All, Here is what I would like to do I am creating a game program that displays a map (preferably in hexes but that is another matter) and whenever the user is over the "map" I want to...
4
by: justdummy | last post by:
Hi, I am struggling with a problem for sometimes. I need to display a table in a html and if the height of the table goes beyond 200 px then a vertical scrollbar should alone appear without any...
2
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
1
by: Ted | last post by:
I am trying to return the vertical scroll position of a rich textbox control using Access 2000. It seems to work for the horizontal scroll bar, but not the vertical. Code follows: Option...
3
by: sumit | last post by:
Hi, I made a data grid vertically as well as horizontal scrollable as number of columns are very large!! But when i scroll horizontally then header is not visible as it also gets scrolled...
7
by: bienwell | last post by:
Hi, I'm using the CheckBoxList control in ASP.NET for Web development. This checkboxlist is bound by the database. If we have more items for this checkbox list, it takes space on the page. I...
2
by: Gene Hubert | last post by:
I'm assigning a new datasource (a datatable) to a datagrid that is aready displayed in a form. Then I assign a new value to CurrentRowIndex. The datagrid always scrolls so that the new current...
0
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
2
by: karinmorena | last post by:
I'm having 4 errors, I'm very new at this and I would appreciate your input. The error I get is: Week5MortgageGUI.java:151:cannot find symbol symbol: method allInterest(double,double,double)...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.