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

Last major question...Hash Values

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?

3 Replies

AD Administrator Syncfusion Team January 13, 2005 06:33 PM UTC

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.

SR Spencer Robinson January 13, 2005 06:48 PM UTC

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?

AD Administrator Syncfusion Team January 13, 2005 07:13 PM UTC

Try e.Style.CellIdentity.ColIndex

Live Chat Icon For mobile
Up arrow icon