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.
Unfortunately, activation email could not send to your email. Please try again.

Cell Display

Thread ID:

Created:

Updated:

Platform:

Replies:

12259 Mar 24,2004 08:21 PM Mar 25,2004 07:25 AM Windows Forms 1
loading
Tags: GridControl
JianLi
Asked On March 24, 2004 08:21 PM

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 07:25 AM

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.

CONFIRMATION

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.

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.

;