hu hannef,
i want my user to trigger the change of the back color.
if i'm handling an event' it's not my trigger.
only when he'll click a button i want to make the change.
>Hi Shachar,
You can try using the QueryCellStyleInfo event to color current group caption cell. This code will work
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if( e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
{
GridCurrentCellInfo info = e.TableCellIdentity.Table.TableModel.CurrentCellInfo;
if( info != null && info.RowIndex == e.TableCellIdentity.RowIndex )
{
e.Style.Themed = false;
e.Style.BackColor = Color.Red;
}
}
}
Key is to turn off XP Themes for the GroupCaption cells.
Sample :
GGCCurrentCaptionColor.zipBest regards,
Haneef