How do I reload data from the tables to the RadGridView?

3 posts, 0 answers
  1. Sathyana
    Sathyana avatar
    1 posts
    Member since:
    Jan 2015

    Posted 13 Mar 2015 Link to this post

    We are beginning to use Telerik WPF UI for a Windows Forms application.  We have a RadGridView bound to a RadEntityFrameworkDataSource which gets
    data from the database using Entity Framework.  The data for the grid come from a View in the database.  The data appears fine initially but 
    we change data in the tables programmatically.  How do we force the datagrid to retrieve the latest changes from the database? 

  2. Maya
    Maya avatar
    4062 posts

    Posted 16 Mar 2015 Link to this post

    Hello Sathyana,

    You need to implement INotifyPropertyChanged interface. After that, once the value of a property is updated, RadGridView will be notified and the change will be reflected immediately in the view. 


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Uwe
    Uwe avatar
    49 posts
    Member since:
    Sep 2012

    Posted 21 Mar 2017 Link to this post

    Hello Sathyana,

    we are also interested in such a mechanism. Where do you mean to implement the call of  OnPropertyChanged() ? Can you give a small example? We assigen a  MyRadEntityFrameworkDataSource.DbContext = new MyEntities() in the CodeBehind and how do we implement a good working try catch to prevent the Application for crashing on SQL Exceptions?

    Thank you in advance and best Regard Uwe

Back to Top