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

ComboBox Cell - getting the display text

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


3 Replies

JL Julie Levy December 5, 2007 12:45 AM UTC

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

Thanks.



AD Administrator Syncfusion Team December 5, 2007 10:58 AM UTC

Try code such as:

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

to see if that gives you what you want.



JL Julie Levy December 5, 2007 06:25 PM UTC

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.



Loader.
Live Chat Icon For mobile
Up arrow icon