The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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
AKAdam K.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
ADAdministrator Syncfusion Team October 30, 2005 09:56 PM UTC