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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Number format . .

Thread ID:

Created:

Updated:

Platform:

Replies:

36432 Oct 29,2005 10:29 PM UTC Oct 30,2005 09:56 PM UTC WinForms 3
loading
Tags: GridControl
Adam K.
Asked On October 29, 2005 10:29 PM UTC

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 30, 2005 02:47 AM UTC

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 09:23 PM UTC

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 09:56 PM UTC

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.

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

;