Articles in this section

How to append a long text in a WinForms GridGroupingControl?

Trimming text


In WinForms GridGroupingControl, when you display the long text in a cell, the exceeding text is hidden in that cell. To display a long text with trimming (...) character in GridGroupingControl, it can be achieved by setting the Trimming property as EllipsisCharacter.

C#

//Set ellipsis character for specific column in a grid.           
this.gridGroupingControl1.TableDescriptor.Columns["Ship"].Appearance.AnyRecordFieldCell.Trimming = StringTrimming.EllipsisCharacter;

VB

'Set ellipsis character for specific column in a grid.
Me.gridGroupingControl1.TableDescriptor.Columns("Ship").Appearance.AnyRecordFieldCell.Trimming = StringTrimming.EllipsisCharacter

The screenshot below displays the text trimming

 

Append a long text with trimming character


   Figure
1: Trimming

In the above image, ship column text has been trimmed.


Note:
Before setting the Trimming property, you have to confirm that WrapText is set as False.

 

Conclusion

I hope you enjoyed learning about how to append a long text in a WinForms GridGroupingControl.


You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.

 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridGroupingControl and other WinForms components.

 

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied