AD
Administrator
Syncfusion Team
June 27, 2006 01:05 AM UTC
Hi Rasesh,
You can handle style properties manually to have disabled look, like set the TableStyle.BackColor to gray or some other colors or can change the color of the gridlines etc. The following code represents this.
******************
if(this.gridControl1.Enabled == false)
{
this.gridControl1.BackColor = SystemColors.Control;
this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.TextColor = System.Drawing.SystemColors.Control;
this.gridControl1.BaseStylesMap["Column Header"].StyleInfo.TextColor = System.Drawing.SystemColors.Control;
this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.CellAppearance = GridCellAppearance.Flat;
this.gridControl1.BaseStylesMap["Column Header"].StyleInfo.CellAppearance = GridCellAppearance.Flat;
}
******************
Best regards,
Madhan