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.
I have a GridControl. In the Grid columns there are several different controls NumericUpDown, MonthCalendar etc.
Now, I expected that a NumericUpDown will not accept a non numeric value but it allows everything. I can also type "hello world!" into a MonthCalendar!!! It doesn''t make sense. Is there a way to make these controls self validate without code from my part (handling validation events)?
Many thanks
ADAdministrator Syncfusion Team March 10, 2006 07:27 AM UTC
Hi Hassan,
For validating a numeric value cell the style.ValidateValue.NumberRequired property can be set to true and you can also set your own error message in the style.ValidateValue.ErrorMessage property. In order to validate a DateTime value cell the style.CellValueType can be set to typeof(System.DateTime). But this also throws the FormatException in the Output Debug window. Let us know if you have any further questions.
Regards,
Calvin.