Make Datagrid columns autosize when datagrid is resized
Posted on 2005-03-11
I have a form with a datagrid with 10 cells by 10 cells, set to dock=fill so that when the form is resized by the user, the datagrid resizes and always fills the form.
However, the cells in the datagrid stay the same size so I end up with a large datagrid which has the cells in the top left and a lot of empty space elsewhere.
I want the datagrid cells to resize when the grid resizes to that the 10 columns are always filling the full width of the grid, and the 10 rows are always filling the height of the grid.
Also, it would be cool if the font size increased / decreased with the grid resizing.
Thanks in advance...