We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I use GridTableCellType.AnyRecordFieldCell ??

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.

1 Reply

AD Administrator 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

Live Chat Icon For mobile
Up arrow icon