We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

datagrid constraint

Thread ID:

Created:

Updated:

Platform:

Replies:

1358 Oct 21,2002 04:48 PM UTC Dec 26,2002 07:15 AM UTC WinForms 2
loading
Tags: FAQ
zohar
Asked On October 21, 2002 04:48 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Oussax
Replied On December 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;