The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hello,
If I have to disable the GridControl, I do like =
gridControl1.Enabled = false
but still it has a same style, just I cannot change the values or move the scroll bars.
I need a style like when we disable a button, it has different disable style. How can i do same for gridcontrol ?
ADAdministrator 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