>How can I get the grid columns to "stretch" over the available grid width?
>Example:
>Lets say I have a datagrid on my form at the datagrid's width is 300. I have 3 columns in my grid. Each column's width is 75. 3 multiplied with 75 is equal to 225, which means I have 75 pixels left over.
>Or what if I make the column's width 100, now my grid look fine until the silly user decides to maximize the form (I have anchored my datagrid) and now I get several pixels left over.
>Or what if the user doesn't maximize the form but decreases the second column's width, now I've got pixels left over.
>
>I hope my examples make sense. What I would like to happend is that the right-most column adjusts acording to what the silly user does and expands or shrinks to leave no pixels left over?
>
>I seem to remember this is how it was in VFP by default.
>
>Is it any way to do this? Is it the "best" way to do it only to adjust the right-most column? Or should all the columns adjust proportionately to acheive this?
>
>Thanks,
>Einar
Einar,
As being one of those silly users I think it's default behavior in VFP grids too. Check syncfusion.com. I'm sure you'd find one entry in FAQ dealing with this (in theory you'd add a delegate for resize and size your colums accordingly).
Cetin