Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
How to Wrap text in GroupByRow ?
posted

i have a grid that is:

- grouped by Country

- then group by city

- then comes the detailed data.

the first group's row's value (country) contains a long concatenated string beside country name (ex:population, area, ..etc)

so the value doesn't fit in one row and is being cut.

1- i have resized the row in Grd_SO_InitializeGroupByRow(...) >> e.Row.height = 80; //it made the row's height bigger but the text is still cut.

2- i tried 

UltraGridGroupByRow groupByRow = e.Row as UltraGridGroupByRow;
groupByRow.Band.Override.RowSizing = RowSizing.Free;
groupByRow.Band.Columns["country"].CellMultiLine = DefaultableBoolean.True;

and

foreach(UltraGridGroupByRow groupByRow in Grd_SO.Rows)
 groupByRow.Band.Override.WrapHeaderText = DefaultableBoolean.True;

3- i tried WrapHeaderText // but it wraps the header of the detailed data's column headers.

how can i please wrap the text that shows in a specific groupBy row as the (country) mentioned above.

Parents
  • 469350
    Offline posted

    Hi Ahmad, 

    I don't think the GroupByRow supports multi-line text, at least not through the regular object model. It might be possible to achieve some kind of wrapping using a CreationFilter, but it depends on what kind of wrapping you are talking about. 

    Does the text in the column for which you are grouping have line breaks in the actual text? Or are you just trying to wrap the text based on the available space? 

    The former case is probably very easy to implement by just modifying the text element that displays the text to honor the line breaks. 

    The latter case is trickier since it requires a limited width and I am pretty sure the GroupByRow sizes it's width based on the text, so there will never be a width limit - although I could be wrong about that. 

Reply Children