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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

looking for the Event

Thread ID:





56212 Feb 11,2007 06:02 PM UTC Feb 12,2007 05:18 PM UTC WinForms 1
Tags: Tools
Shachar Shimshon
Asked On February 11, 2007 06:02 PM UTC

hi all.
when the ggc is being loaded(after setting it's datasource), i would like to hook to the event and then change the backcolor of a row, if it's value equals somthing.
can you give me a simple example please?

Administrator [Syncfusion]
Replied On February 12, 2007 05:18 PM UTC

Hi Shachar,

The GroupingGridControl is a column oriented grid. So you cannot set any cell specific properties like backcolor using property settings. To do this, you will have to subscribe the TableControlPrepareViewStyleInfo event (or QueryCellInfo event). In your handler, you check e.Style.CellValue and if this is valid than set e.Style.Backolor to the value you want. Also you can set the one flag value(IsEngineDataSourceChanged) )in the Engine.DataSourceChanged event of the grid and retrive that flag into the QueryCellInfo event for setting the rowcolor/cell color. Here is a minimal sample that shows you "How to change the RowColor/CellColor depends on the cellvalue?"

Sample : GGCRowBackColor.zip

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon