We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display placeholder characters when cell content exceeds cell width?

If the content of a grid cell exceeds the cell width, then characters can be displayed as placeholders instead of actual letters or numbers, indicating that the cell contains more content than can be shown within the cell. By default, the number sign (#) is used as the placeholder character, but you can specify custom characters. This article explains the usage of the placeholders.

1. Converting Alphabetic Content:

In order to specify only alphabetic contents as placeholders, the AutoFit property can be set as Alphabet.

Code Snippet

C#

 

VB

 

2. Converting Numeric Content

In order to specify the only numeric contents as placeholders, the AutoFit property can be set as Numeric value.

Code Snippet

C#

 

VB

 

3. Converting Alphabetic and Numeric Content

In order to use both the contents of alpha-numeric contents as placeholders, the AutoFit property can be set to the value Both.

Code Snippet

C#

 

VB

 

4. Not Converting Content

In order to restrict display of placeholders with any of the contents, the AutoFit property can be set to the value None. By Default, the value of AutoFit property is None.

Code Snippet

C#

 

VB

 

5. Setting Custom Characters

Characters other than the number sign (#), the default, can be used to replace alphanumeric content that exceeds the size of a cell. In order to do so, the AutoFitChar property can be used to set as a desired character.

C#

 

VB

 

Screenshot

Sample links

C# PlaceHolders_CS

VB PlaceHolders_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6852 05/13/2016 05/18/2016 WinForms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon