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.

TextColor Bug

Thread ID:

Created:

Updated:

Platform:

Replies:

56471 Feb 15,2007 09:45 AM Feb 21,2007 03:53 PM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 15, 2007 09:45 AM

Hi,

I think I found a bug in the GGC. You have to do the following steps to reproduce the error.

1. Open Visual Studio create a new project (Windows Forms) and put a GGC on the form.

2. In the property grid where you can see all properties of the grid - open the Table Descriptor and click on the columns property. Now the column property dialog opens.

3. Add a column and set the TextColor property below the Appearance property (AnyRecordFieldCell) to a specific color. When you are done - close the dialog.

4. Add a second column (like described in 2.) and change the TextColor property (AnyRecordFieldCell) for that column to another column and close the dialog.

Now you get an "object not set to a reference" exception and the studio crashes.

Any idea what's wrong here?

Administrator [Syncfusion]
Replied On February 15, 2007 09:46 AM

Hi,

in 4. it should be "to another color" not "to another column"


>Hi,

I think I found a bug in the GGC. You have to do the following steps to reproduce the error.

1. Open Visual Studio create a new project (Windows Forms) and put a GGC on the form.

2. In the property grid where you can see all properties of the grid - open the Table Descriptor and click on the columns property. Now the column property dialog opens.

3. Add a column and set the TextColor property below the Appearance property (AnyRecordFieldCell) to a specific color. When you are done - close the dialog.

4. Add a second column (like described in 2.) and change the TextColor property (AnyRecordFieldCell) for that column to another column and close the dialog.

Now you get an "object not set to a reference" exception and the studio crashes.

Any idea what's wrong here?

Administrator [Syncfusion]
Replied On February 18, 2007 10:54 AM

Hi,

did you already take a look at that issue. It seems we have the same problem when we switch our application in the design mode (via our custom designer). Setting the TextColor results in a "object not set to a reference exception"

Administrator [Syncfusion]
Replied On February 19, 2007 12:31 PM

Hi Tom,

Thanks for bringing this issue to our attention.

We could reproduce the issue as mentioned. As a workaround for this issue. You can change the TextBoColor of the record field cell in a Form.Load event(runtime) . Here is a code snippet.

this.grid.TableDescriptor.Columns["ColumnName"].Appearance.TextColor = Color.Blue;

Thanks for your continued interest in Syncfusion products.

Regards,
Haneef

Administrator [Syncfusion]
Replied On February 21, 2007 03:04 AM

Hi Haneef,

I think you mean:

this.grid.TableDescriptor.Columns["ColumnName"].Appearance.AnyRecordFieldCell.TextColor

but the problem exists even in this case


>Hi Tom,

Thanks for bringing this issue to our attention.

We could reproduce the issue as mentioned. As a workaround for this issue. You can change the TextBoColor of the record field cell in a Form.Load event(runtime) . Here is a code snippet.

this.grid.TableDescriptor.Columns["ColumnName"].Appearance.TextColor = Color.Blue;

Thanks for your continued interest in Syncfusion products.

Regards,
Haneef

Administrator [Syncfusion]
Replied On February 21, 2007 03:53 PM

Hi Sachin,

Here is a minimal sample that shows you "How to change the text color of the column in a grid?". Please try the attached sample and let me know if this helps.

sample : GGCCurrentRecordMoveUPDOWN.zip

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.

;