By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,948 Members | 1,929 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,948 IT Pros & Developers. It's quick & easy.

Getting vertical scroll bar to work correctly after making datagrid multline

P: n/a
I've made a datagrid multiline (for anyone interested, I used an
adaptation of the code at

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!


May 15 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.