I have my grid with star sized columns, and I need word wrapping on. However, if the columns are star sized, the wrapped text does not automatically expand the row's height to display all of the text. In the picture I have attached, the text in the second and fourth rows are supposed to say "Personal Representative", but the row's height is not expanded to show the text. If I put a hard-coded number for the column width, then the row expands its height to accomodate the text's wrap. Is there a way to have star-sized columns and word wrap?
So, we have our rows getting resized to based off of their content. If we then expand out the containing window, the grid resizes, but the rows don't resize which leaves an ungodly amount of white space surrounding the content.
Is there someway to have the system re-adjust the rowheight following a resize fo the grid?
Mike Kenyon said: So, we have our rows getting resized to based off of their content. If we then expand out the containing window, the grid resizes, but the rows don't resize which leaves an ungodly amount of white space surrounding the content. Is there someway to have the system re-adjust the rowheight following a resize fo the grid?
Hi,
You can set the RowHeight of the XamGrid to Dynamic.
Xaml:
... <ig:XamGrid x:Name="XGrid" RowHeight="Dynamic"> </ig:XamGrid> ...
C#
... this.XGrid.RowHeight = Infragistics.Controls.Grids.RowHeight.Dynamic; ...
Hope this helps