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.

ComboBox Cell - getting the display text

Thread ID:

Created:

Updated:

Platform:

Replies:

70268 Dec 4,2007 07:44 PM Dec 5,2007 01:25 PM Windows Forms 3
loading
Tags: GridControl
Julie Levy
Asked On December 4, 2007 07:44 PM

Hi -
How do i read the display text (not cell value) of a combobox cell when it is not the current cell? I know that current cell has a ControlText property in it's renderer. I need the same property when the cell isn't the current cell.

Thanks,
Julie


Julie Levy
Replied On December 4, 2007 07:45 PM

oops, forgot to mention i'm using the GridControl.

Thanks.


Administrator [Syncfusion]
Replied On December 5, 2007 05:58 AM

Try code such as:

string display = grid[rowIndex, colIndex].FormattedText;

to see if that gives you what you want.


Julie Levy
Replied On December 5, 2007 01:25 PM

Thanks.. that works.
I have a GridStyleInfo object so i was trying style.FormattedText which returned the value of the selected list item, not the display text.
Thanks again.



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.

;