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.
What''s the best pratice for catching validation errors that are thrown when you add a new row to the grid that violates a dataset constraint (e.g. field doesn''t allow nulls)?
The grid, it seems, handles the exception and presents a friendlier message rather than a raw exception, but I''d like to customize the error message.
Thanks!
ADAdministrator Syncfusion Team May 24, 2004 03:05 PM UTC
Try handling teh ValiateFailed event, and in your handler set grid.CurrentCell.ErrorMessage.
Private Sub GridDataBoundGrid1_ValidateFailed(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridValidateFailedEventArgs) Handles GridDataBoundGrid1.ValidateFailed
MessageBox.Show("My Message")
e.Handled = True
End Sub
ADAdministrator Syncfusion Team May 28, 2004 04:44 PM UTC