MSHFlexgrid column line-up

04-03-2003, 03:17 AM
I have a grid on my form which has columns different widths depending on information being displayed. When the user resizes the form, the grid columns all change accordingly.

What I need is some code which will line up text boxes with certain of the columns on my grid. They need to appear under the grid as totals for some of the columns in the grid. They are not in the grid, just on my form at the moment and all over the place when I resize the form! Thanks for all your help.

04-03-2003, 03:23 AM
Use the .ColWidth() property of the grid to calculate the position of a textbox.
To get a textbox under column 3 you would have to sum the width of column 1 + 2 to get the offset, combined with the Left property of the Grid itself you can place the textbox on the correct position.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum