Hello,
When I try to insert,update or delete the data through the RadGridview of the program,
if it occurred the pop up error message from the Database(ex:primary key constrain),
the RadGridview will be freezed,then I can't edit the data in the RadGridview any more,
if I force it to work,sometimes cause the program crashed,
I must restart the program to let RadGridview work normally again,
is this problem fixed in the latest version? if not,how to solve this problem?
I use the 2008 Q2 SP1,DB is SQL Server 2005.
Best regards.
5 Answers, 1 is accepted
0
Hello Victor Wang,
This is normal message when you have data constraints in your data source. You must handle the DataError event of RadGridView to prevent showing the default message box.
I hope this helps. Should you have any other questions, feel free to ask.
Greetings,
Julian Benkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
This is normal message when you have data constraints in your data source. You must handle the DataError event of RadGridView to prevent showing the default message box.
I hope this helps. Should you have any other questions, feel free to ask.
Greetings,
Julian Benkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
hamid
Top achievements
Rank 1
answered on 08 Jun 2009, 04:41 PM
Hi,
I have problem with DataError event
I just add a DataTable with two column "Name" and "Id" that Id is unique to DataSet
then add a RadGridView control to form and assign it to my table in dataset
Also add DataError Event to catch error, but when running application and enter 2 record and then try to save duplicate record (by editing), application crash and exit from application (DataError event not fire)
Note: DataError fire when using Enter to update record, but when try to click on other row of grid, raise error and application crash
Is it bug?
Thanks
Hamid
I have problem with DataError event
I just add a DataTable with two column "Name" and "Id" that Id is unique to DataSet
then add a RadGridView control to form and assign it to my table in dataset
Also add DataError Event to catch error, but when running application and enter 2 record and then try to save duplicate record (by editing), application crash and exit from application (DataError event not fire)
Note: DataError fire when using Enter to update record, but when try to click on other row of grid, raise error and application crash
Is it bug?
Thanks
Hamid
0
Hello h,
Please send us a sample example of your scenario to debug it locally. Thank you very much in advance. Please note that you need to open a new support ticket so that you can attach files.
Sincerely yours,
Julian Benkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please send us a sample example of your scenario to debug it locally. Thank you very much in advance. Please note that you need to open a new support ticket so that you can attach files.
Sincerely yours,
Julian Benkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 25 Apr 2012, 06:35 PM
Has this been fixed?
I have a GridView bound to a DataTable, and any constraint violations cause the application to crash.
The DataError event never gets triggered.
Please advise. Thanks.
I have a GridView bound to a DataTable, and any constraint violations cause the application to crash.
The DataError event never gets triggered.
Please advise. Thanks.
0
Hi Joe,
All the best,
Julian Benkov
the Telerik team
Judging by your description I can say that this is not a known behavior. However, I would kindly ask you to provide me with additional details about your scenario. It will be best if you can send us a sample project where we can reproduce the issue. This will allow us to understand the exact behavior and the circumstances in which it occurs. Hence we will be able to assist you further.
Thank you for your cooperation. I am looking forward to your response.
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>