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

Cell Display

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?

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon