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 am using a GridDataBoundGrid, with a DataTable as the DataSource. In the DataTable, i set the primary key field to prevent duplicate entries. Is there a way I can trap the duplicate key exception before it is thrown up to the user?
ADAdministrator Syncfusion Team September 27, 2006 03:59 AM UTC
Hi Michael,
Yes. You can handle the CurrentCellErrorMessage event and display your own error message whenever the grids CurrentCell.DisplayWarningText (as a result of some kind of validation error) is called.