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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Currency CellType row selection textcolor (Urgent)

Thread ID:





82420 Jun 12,2009 07:28 PM UTC Jun 25,2009 06:43 PM UTC WinForms 5
Tags: GridControl
Alomgir Miah
Asked On June 12, 2009 07:28 PM UTC


While using Currency CellType, I cannot see the highlighted text in the row when the row is selected. It works well with other celltypes. I am using GroupingGridControl.

Please advise.

Alomgir Miah
Replied On June 12, 2009 07:33 PM UTC

It happens only when I set

TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;

Rajadurai C [Syncfusion]
Replied On June 20, 2009 08:20 AM UTC

Hi Alomgir,

Thanks for your interest in Syncfusion Products.

With the currency celltype, the highlighted currency cell text can be viewed even when the row is selected. Please refer to the attached minimal sample which i have created to reproduce the reported issue.

I was able to see the text color applied to the currency cell when the row is under selection.

this.gridGroupingControl1.TableDescriptor.Columns["Location"].Appearance.AnyRecordFieldCell.CurrencyEdit.NegativeColor = System.Drawing.Color.Red;
this.gridGroupingControl1.TableDescriptor.Columns["Location"].Appearance.AnyRecordFieldCell.CurrencyEdit.PositiveColor = System.Drawing.Color.Black;

Can you please try to reproduce the issue in this sample and provide us so that we could see the issue and work to provide a better solution.


Alomgir Miah
Replied On June 22, 2009 09:13 PM UTC

Please change your appearence(from xp theme) to Windows classic style, then you will know what I mean. I ran your sample and see the same issue. The textcolor of the selected rows should be white instead of black.

Rajadurai C [Syncfusion]
Replied On June 25, 2009 01:34 PM UTC

Hi Alomgir,

Thanks for your update.

An important characteristic of the currency cell is highlighting in different colors to differentiate negative and positive values. The PositiveColor and NegativeColor property of currency cells holds SystemColors.ControlText and Color.Red respectively by default.

When the listboxselectionmode is set, the ApplySelectionColor is set by default for GridListBoxSelectionColorOptions. With this option, the backcolor and forecolor refers to SelectionBackColor and SelectionTextColor property in TableOptions which doesn't influence the Currency cells due to the default colors it holds(PositiveColor, NegativeColor).

If you would like to have the highligting of currency cell text with listboxselectionmode similar to the one when the AllowSelection mode is set, please try to set the GridListBoxSelectionColorOptions to DrawAlphablend. Here is the code for your reference.

this.gridGroupingControl1.TableOptions.ListBoxSelectionColorOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionColorOptions.DrawAlphablend;


Alomgir Miah
Replied On June 25, 2009 06:43 PM UTC

Works like a charm. Thank you.


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

or the page will be automatically redirected to 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