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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I use GridTableCellType.AnyRecordFieldCell ??

Thread ID:





16365 Jul 13,2004 07:34 PM UTC Jul 13,2004 08:27 PM UTC WinForms 1
Tags: Grouping
Daniel Chait
Asked On July 13, 2004 07:34 PM UTC

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.

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon