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.
JJJisha Joy Syncfusion Team February 5, 2010 06:49 AM UTC
Hi Arseniy,
You could achieve the desired behavior by handling the QueryCellStyleInfo event. In this event you could set the styles of required cells based on the conditions.
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell) { if (e.TableCellIdentity.Column != null && e.TableCellIdentity.Column.Name == "VAL") { Record r = e.TableCellIdentity.DisplayElement.GetRecord(); if (r != null) { if ((bool)r.GetValue("FLAG") == false) { e.Style.Enabled = false;
}
} }
} }
Please let me know if this helps.
Regards, Jisha
AKArseny KhutorianskyFebruary 9, 2010 06:33 AM UTC
Thanks
JJJisha Joy Syncfusion Team February 9, 2010 08:34 AM UTC