Friday, February 24, 2012

Autofit row height

So now I'd like to make the row height automatically expand to fit the data. The interesting situation here is that the row starts off very small and then if you click a box it displays an image and when the image is displayed, I need row to expand to fit it.

In "Properties" of a column, there's a "CanGrow" field, set it to False

TextBox.CanGrow Property

Indicates whether the text box can grow vertically.

A Boolean value indicating if the text box has the ability to get taller. If the value returned is true, that indicates that the textbox can grow vertically.

No comments:

Post a Comment