ST
stanleyj
Syncfusion Team
January 9, 2006 03:52 PM UTC
Hi Prethi,
The style properties of GGC are to done in TableControlPrepareViewStyleInfo or QueryCellStyleInfo handlers.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.Column != null)
if(e.TableCellIdentity.Column.Name == "check/uncheck" && e.Style.CellType == "CheckBox" && Convert.ToBoolean(e.Style.CellValue))
e.Style.BackColor = Color.Pink;
else
e.Style.BackColor = Color.Yellow;
if(e.Style.CellType == "TextBox")
e.Style.BackColor = Color.LightSteelBlue;
}
Best regards,
Stanley
AD
Administrator
Syncfusion Team
January 10, 2006 09:01 AM UTC
thanks
>Hi Prethi,
>
>The style properties of GGC are to done in TableControlPrepareViewStyleInfo or QueryCellStyleInfo handlers.
>
> private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
> {
> if(e.TableCellIdentity.Column != null)
> if(e.TableCellIdentity.Column.Name == "check/uncheck" && e.Style.CellType == "CheckBox" && Convert.ToBoolean(e.Style.CellValue))
> e.Style.BackColor = Color.Pink;
> else
> e.Style.BackColor = Color.Yellow;
>
> if(e.Style.CellType == "TextBox")
> e.Style.BackColor = Color.LightSteelBlue;
> }
>
>Best regards,
>Stanley