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 ?
ADAdministrator Syncfusion Team July 13, 2004 03:27 PM
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.