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.

GridGroupingControl and Row Paint Event

Thread ID:





32032 Jul 20,2005 07:49 AM Jul 20,2005 08:42 AM Windows Forms 2
Tags: GridControl
Franz Gsell
Asked On July 20, 2005 07:49 AM

Hi together, I am using a gridgroupingcontrol with a dataset object as datasource. So for a special column (let''s say the first column) I want to draw a different image (with text) in each row (so for the described situation always in the first cell of each row) with the ImageIndex option. So what event can i use to solve this problem. I have seen the CurrentRecordContextChange event but this event is too late - the rows are already filled with data, and the grid is displayed. I want to set the ImageIndex option separately for each cell in the choosen column before drawing the grid. It''s difficult to describe what I want - hope you understand me :-) Kind regards Franz

Administrator [Syncfusion]
Replied On July 20, 2005 08:11 AM

You should try using the QueryCellStyleInfo event. There you can set e.Style.ImageIndex, making sure you are in the column you want to be by checking the information you can find in the e.TableCellIdentity object.

Franz Gsell
Replied On July 20, 2005 08:42 AM

Wow - you are so fast :-))) That''s the point i was searching for - Thank you very much !!


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.