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.

Number format . .

Thread ID:

Created:

Updated:

Platform:

Replies:

36432 Oct 29,2005 06:29 PM Oct 30,2005 04:56 PM Windows Forms 3
loading
Tags: GridControl
Adam K.
Asked On October 29, 2005 06:29 PM

Is there a number format the will display the text color in Red if its negative or do i have to do this manually. i am using a grid control in virtual mode. thks ak

Administrator [Syncfusion]
Replied On October 29, 2005 10:47 PM

If you use a CurrencyEdit celltype, you can use style.CurrencyEdit.NegativeColor to set this color. But if you are using other celltypes, then you would have to handle PrepareViewStyleInfo as in this KB to conditionally change e.Style.textColor when e.Style.Cellvalue < 0. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=83

Adam K.
Replied On October 30, 2005 04:23 PM

why would i handle this in prepareviewstyle if i am already listening to QueryCellInfo. Shouldn''t i just handle it there ?? >If you use a CurrencyEdit celltype, you can use style.CurrencyEdit.NegativeColor to set this color. But if you are using other celltypes, then you would have to handle PrepareViewStyleInfo as in this KB to conditionally change e.Style.textColor when e.Style.Cellvalue < 0. > >http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=83

Administrator [Syncfusion]
Replied On October 30, 2005 04:56 PM

QuerycellInfo is fine.

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.

;