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.

Last major question...Hash Values

Thread ID:





23521 Jan 13,2005 01:23 PM Jan 13,2005 02:13 PM Windows Forms 3
Tags: GridControl
Spencer Robinson
Asked On January 13, 2005 01:23 PM

I want to take values out of my DataSource (let''s say the value is a "1") and put that through a Hash to get a different value to show up (In this situation lets say "1" maps to "Employee"). Is this achievable with the DataBoundGrid?

Administrator [Syncfusion]
Replied On January 13, 2005 01:33 PM

If you just want to swap out the displayed text (not really do anything with it except see it on the screen), then you can handle the DrawCellDisplayText event. There get the e.DisplayText, and reset it to be what you want to see.

Spencer Robinson
Replied On January 13, 2005 01:48 PM

OK...but in hooking that event I have access to the text to be Displayed, but how do I know what column is firing that? I only want to do this on say one out of three columns so is there a way to hook it for only one column?

Administrator [Syncfusion]
Replied On January 13, 2005 02:13 PM

Try e.Style.CellIdentity.ColIndex


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.