After add BeginUpdate/EndUpdate, the the error

3 posts, 1 answers
  1. Haibing
    Haibing avatar
    3 posts
    Member since:
    Jul 2019

    Posted 28 Jul 2019 Link to this post

    I have a gridview, I want to display in Master-Child mode. But the performance is really bad when loading data. I added BeginUpdate/EndUpdate before and after I want to load or modify some binding data. But I get the following error randomly  after I modify my data several times.

     

  2. Haibing
    Haibing avatar
    3 posts
    Member since:
    Jul 2019

    Posted 29 Jul 2019 in reply to Haibing Link to this post

    It is very like that after I called BeginUpdate, and the binding data has some properties value are changed before I call EndUpdate, the error will appear very common.  
  3. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3892 posts

    Posted 29 Jul 2019 Link to this post

    Hello, Haibing,   

    When RadGridView is populated with data and you update a certain cell/row, the grid will update its layout. The more edit operations occur, the more visual updates will be performed. This will inevitably affect performance. In such cases, it is good to use Begin/EndUpdate in order to reduce the visual refresh of RadGridView to one time. However, it is not recommended to use it when setting the DataSource for example because in the Begin/EndUpdate block, the notifications in RadGridView will be suspended.

    A possible solution for improving loading hierarchical data, is using the load on demand approach. Please refer to the following help article: https://docs.telerik.com/devtools/winforms/controls/gridview/hierarchical-grid/load-on-demand-hierarchy

    Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. Thank you for your understanding.

    I hope this information helps.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top