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.

GridColumnDescriptor default constructor

Thread ID:

Created:

Updated:

Platform:

Replies:

56805 Feb 21,2007 04:47 AM Feb 21,2007 01:38 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 21, 2007 04:47 AM

Hi together,

we have recognized some strange behavior in our current project. If you create a column descriptor (GridColumnDescriptor) which is not bound to a table descriptor yet, some properties of the newly created object are not set correctly (e.g. null reference)

An example is:

Appearance.AnyRecordFieldCell.Font

After I added the newly created grid column descriptor to a table descriptor object, the font property mentioned above is correct.

So my question: How can I create a grid column descriptor which is initialized correctly even if it is not added to a table descriptor?

Thanks in advance

Cheers,
Chris

Administrator [Syncfusion]
Replied On February 21, 2007 01:38 PM

Hi Chris,

How can I create a grid column descriptor which is initialized correctly even if it is not added to a table descriptor?
>>>>>>>
Please try the below code snippet to create the grid column descriptor with mapping name(column name).

GridColumnDescriptor cd = new GridColumnDescriptor("MappingName");
cd.Appearance.AnyRecordFieldCell.BackColor = Color.Red;

Best regards,
Haneef

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.

;