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.
Hello I have a bounded grid . The Cell type is Currency . I have writtem the code as
Qualification.GridBoundColumns(GridColumns.ScheduledHours).StyleInfo.CellType = "Currency" Qualification.GridBoundColumns(GridColumns.ScheduledHours).StyleInfo.CurrencyEdit.CurrencyNumberDigits = 3 Qualification.GridBoundColumns(GridColumns.ScheduledHours).StyleInfo.CurrencyEdit.CurrencyDecimalDigits = 1 Qualification.GridBoundColumns(GridColumns.ScheduledHours).StyleInfo.CurrencyEdit.CurrencySymbol = "" Qualification.GridBoundColumns(GridColumns.ScheduledHours).StyleInfo.CurrencyEdit.NullString = "" The problem is If i put a Negative value then in that case the cell text gets RED . Is there any way I can restric the user to put negative values . I hope I have made u understand the problem .
ADAdministrator Syncfusion Team November 21, 2006 11:20 AM UTC
Hi Lokesh,
The following code states how to set the NegativeSign, NegativeColor and CurrencyNegativePattern of the currency cell in a grid. Please try this and let me know if you are looking something different.
Hello Haneef Thanks for the Answer but I dont want the user to put any negative values . That means my grid cell should accept only positive values .
regards lokesh
>Hi Lokesh,
The following code states how to set the NegativeSign, NegativeColor and CurrencyNegativePattern of the currency cell in a grid. Please try this and let me know if you are looking something different.
ADAdministrator Syncfusion Team November 21, 2006 12:53 PM UTC
Hi Lokesh,
You can acess the GridCurrencyTextBox control and handle the CurrencyTextBox.KeyValidate event to cancel the '-' key in a currency cell. Here is a code snippet to show this.