Bind New Row to new DataSource Item

2 posts, 0 answers
  1. Chupacabra
    Chupacabra avatar
    7 posts
    Member since:
    Aug 2012

    Posted 08 Sep 2012 Link to this post


    I need to add a new item to my data-bound RadGridView DataSource. Is our only choice to maintain a List apart from the grid and re-set the DataSource? This is simple enough to do, but was wondering if there was a more strategic way to add a single item to the already-bound grid?

    Thanks you...
  2. Stefan
    Stefan avatar
    2906 posts

    Posted 10 Sep 2012 Link to this post

    Hello Michael,

    Thank you for writing.

    Depending on the binding scenario in most cases the grid should automatically reflect any changes to the data source. For example if you use a DataTable it will work out of the box, if you want to bind it to a collection of custom objects the custom object should implement the INotifyPropertyChanged interface and the collection should implement the IBindingList interface (you can use BindingList<T> which implements it internally).

    More information about the available scenarios is available here:

    Let us know if you have any questions.
    All the best,
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top