RadGridview causing Exception

6 posts, 0 answers
  1. Mars
    Mars avatar
    16 posts
    Member since:
    Jun 2008

    Posted 30 Apr 2009 Link to this post

    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.

  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 30 Apr 2009 Link to this post

    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.
  3. hamid
    hamid avatar
    4 posts
    Member since:
    Jul 2006

    Posted 08 Jun 2009 Link to this post

    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

     
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 10 Jun 2009 Link to this post

    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.
  5. Joe
    Joe avatar
    1 posts
    Member since:
    Feb 2012

    Posted 25 Apr 2012 Link to this post

    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.
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 30 Apr 2012 Link to this post

    Hi Joe,

    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.
    All the best,
    Julian Benkov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top