Hi
There is requirement for settting the row height of ultragrid to three times the default height. Also if the text doesn't fit into the available width and height, then it should show the ellipsis at end and show full text in the tooltip on grid cell
As far I know that I can either set the row to autosize according to the length of text or can set the elipsis to show grid cell. But I don't know how can I set the both at one time
Thanks
Narinder
Hello Narinder.
In order to set the height of the row you can use:
ultraGrid1.DisplayLayout.Override.RowSizingAutoMaxLines = 3;
in addition to
this.ultraGrid1.DisplayLayout.Override.RowSizing = RowSizing.AutoFree;
ultraGrid1.DisplayLayout.Override.CellMultiLine =
DefaultableBoolean.True;
but when you are using CellMultiLine you can't set TextTrimming since the text isn't actually trimmed it simply not visualized. In order to have the ellipsis character you'll have to provide your own logic.
Sincerely,
Petar Monov
Developer Support Engineer,
Infragistics, Inc
Petar,
please could you provide an example of logic able to put ellipsis in the last row visualized, when working with CellMultiLine ?
Thanks in advance.
Gianni
Hi Mike!
Yes it was enough to set TextTrimming property to obtain ellipsis char at the end of last displayed line!
I think Petar was talking about something else !
Thank you very much
Hi Gianni,
I don't think this is possible, but if it is, it would be via the TextTrimming property on the appearance.