Removing rows

2 posts, 1 answers
  1. Marco
    Marco avatar
    23 posts
    Member since:
    Apr 2009

    Posted 05 Oct 2009 Link to this post


    I have a grid bound to a DataTable (cannot use Observable collection of custom objects), when I add or delete a row from the dataTable instance the grid is not refreshed, which is kind of expected.  But the problem is when I force a grid refresh, the only way I found to accomplish that was doing something like this:

    myGrid.ItemsSource = null
    myGrid.ItemsSource = samplesDataTable

    This is extremely expensive.  Is there a more convinient and less expensive way to refresh the grid rows?


  2. Answer
    Milan avatar
    1989 posts

    Posted 06 Oct 2009 Link to this post

    Hi Marco,

    You could try the Rebind method of RadGridView. It is a lightweight method that refreshes the grid.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top