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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell Display

Thread ID:





12259 Mar 25,2004 01:21 AM UTC Mar 25,2004 12:25 PM UTC WinForms 1
Tags: GridControl
Asked On March 25, 2004 01:21 AM UTC

I have a column with default width, and the text in the column is long, for example "123456789-abcdefgh". I set the HorizontalAlignment to Right. The cell display front part "123456", other chars are hidden. How can I display the rear part "cdefgh" instead of front part?

Administrator [Syncfusion]
Replied On March 25, 2004 12:25 PM UTC

There are no property settings that would allow you to do this. I think you would have to derive a cell control (maybe from GridTextBoxCellRenderer and GridtextBoxCellModel) and handle things there by overriding OnDraw in the renderer. You would want to call the baseclass if the cell is an active currentcell. (Check the source for GridTextBoxCellRenderer.OnDraw to see how to do this.) When it is not antive current cell, there you would need to draw the text clipped on the left instead of on the right.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon