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.
I see there''s a constant for GridTableCellType.AnyRecordFieldCell which means that feel like I should be able to do this:
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if ( e.TableCellIdentity.TableCellType == GridTableCellType.AnyRecordFieldCell )
{
// ... code here
}
}
However, it turns out that this doesn''t work. Can I do this any other way (besides the obvious of checking for RecordFieldCell OR AlternateRecordFieldCell ?
Thanks.
ADAdministrator Syncfusion Team July 13, 2004 08:27 PM UTC
Hi Daniel,
None of the Any* elements can be tested for in e.TableCellIdentity.TableCellType. You need to test for RecordFieldCell or AlternateRecordFieldCell.
GridTableCellType has a enum for each style in GridTableCellAppearance. GridTableCellAppearance uses the GridTableCellType enum to iterate through all styles and identify them accordingly.
The Any* styles are just abstract base styles. So setting the Appearance.Any* style will affect all the derived styles. However, TableCellIdentity.TableCellType will never return any of Any* enums as id. It will always return the actual id representing the kind of element.
Stefan