How to Make a Cell Display ‘…’ if it is Not Wide Enough
15 Jun 20211 minute to read
You must set GridStyleInfo’sTrimming property to achieve this. To enable trimming for the whole grid, set this property in TableStyle. To enable trimming on a column, row, or cell basis, set this style property using techniques that are appropriate for the grid that you are using as discussed in the topics on changing BackColor.
//Sets Ellipsis Text for the whole grid. this.grid.TableStyle.Trimming = StringTrimming.EllipsisWord; this.grid.TableStyle.Trimming = StringTrimming.EllipsisWord;
'Sets Ellipsis Text for the whole grid. Me.grid.TableStyle.Trimming = StringTrimming.EllipsisWord Me.grid.TableStyle.Trimming = StringTrimming.EllipsisWord