if you set the RowHeight property to -1 it automatically resizes the rows to fit the current FontSize property setting. I have never tried it, but maybe you could change the fontsize of the current control of the column for each column. that may cause the RowHeight to change just that row. It may be worth a try. Attitude is Everything
Yes it is, but there are limitations. For one the "whole" row would be the same height. Can you explain "depending on the contents of the row"?
You recall my suggestion last week for a similar situation? The one about the read-only grid for a specific row, so instead of switching between a disabled or enabled textbox you swith between a container holding a larger textbox or a smaller one.
That was my first thought, but.
I am thinking that by switching the textbox font on the fly it may effect only the ROW selected. Attitude is Everything
I think it sounds like a good idea but since a grid is a container class, the control source of the column is sized to fit within the RowSize of the grid. The rowsize is a grid level property and not a row level property. I tried changing the height of a label control which I have been using in tandem with another (SetAll/CurrentControl etc. using lblYes and lblNo) in an application. The height property is read-only at design time and remains unchanged at run time. Hope this rambling makes sense.
Dave S.
Woops, let me change this: 'I think it sounds like a good idea but since a grid is a container class, the control source of the column is sized to fit within the RowSize of the grid.'
I think it sounds like a good idea but since a grid is a container class, the current control of the column is sized to fit within the RowSize of the grid.
Dave S.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.