ST
stanleyj
Syncfusion Team
January 7, 2006 09:10 AM UTC
Hi Hui,
By checking HasCurrentCellAt(e.RowIndex, e.ColIndex) and HasReadOnly other requirements are fulfilled.
if (e.RowIndex > gridControl1.Model.Rows.HeaderCount && e.ColIndex > gridControl1.Model.Cols.HeaderCount )
if(this.gridControl1.CurrentCell.HasCurrentCellAt(e.RowIndex))
{
e.Style.Interior = new BrushInfo(Color.LemonChiffon);
}
if(this.gridControl1.CurrentCell.HasCurrentCellAt(e.RowIndex, e.ColIndex))
{
e.Style.Interior = new BrushInfo(Color.Yellow);
}
if( e.Style.HasReadOnly)
{
e.Style.Interior = new BrushInfo(Color.White);
}
Best regards,
Stanley
HZ
Hui Zhong
January 9, 2006 03:25 PM UTC
Thanks.
>Hi Hui,
>
>By checking HasCurrentCellAt(e.RowIndex, e.ColIndex) and HasReadOnly other requirements are fulfilled.
>
>
> if (e.RowIndex > gridControl1.Model.Rows.HeaderCount && e.ColIndex > gridControl1.Model.Cols.HeaderCount )
> if(this.gridControl1.CurrentCell.HasCurrentCellAt(e.RowIndex))
> {
> e.Style.Interior = new BrushInfo(Color.LemonChiffon);
> }
> if(this.gridControl1.CurrentCell.HasCurrentCellAt(e.RowIndex, e.ColIndex))
> {
> e.Style.Interior = new BrushInfo(Color.Yellow);
> }
> if( e.Style.HasReadOnly)
> {
> e.Style.Interior = new BrushInfo(Color.White);
> }
>
>
>Best regards,
>Stanley