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.