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

How can I use GridTableCellType.AnyRecordFieldCell ??

Thread ID:

Created:

Updated:

Platform:

Replies:

16365 Jul 13,2004 03:34 PM Jul 13,2004 04:27 PM Windows Forms 1
loading
Tags: Grouping
Daniel Chait
Asked On July 13, 2004 03:34 PM

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 04:27 PM

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

CONFIRMATION

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.

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.

;