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 everyone
i have a table with primary key and some other
fields, when i'm try to fill the other keys
i get an exception of constraint,
i would like to catch that exception and make my own.
i have to remind you to i'm not do any update, only filling the cell and moving to other row in the datagrid.
please help me
ADAdministrator Syncfusion Team December 19, 2002 09:10 AM UTC
try this:
Try
' your code goes here
Catch ex As ConstraintException 'the exception type that you want to catch
Throw New Exception("Test", ex)
Catch all_ex As Exception 'catch all unhandled exceptions
' do something here
End Try
> hello everyone
> i have a table with primary key and some other
> fields, when i'm try to fill the other keys
> i get an exception of constraint,
> i would like to catch that exception and make my own.
>
> i have to remind you to i'm not do any update, only filling the cell and moving to other row in the datagrid.
>
> please help me
OUOussaxDecember 26, 2002 07:15 AM UTC
try this: set the EnforceConstraints of your dataset to false
this.myDataSet.EnforceConstraints = false;
this will stop the messages. But you will have to find a way to create your messages. on RowChanging or CurrentCellChanged events