Inserting Row in between

4 posts, 0 answers
  1. Keshava
    Keshava avatar
    9 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2011 Link to this post

    Hi ,
     I am using raddomaindatasource to get and bind the data
    when I am trying to insert a row it shows the following error message

    operation is not valid,itemssource in use..access and modify the elements with itemscontrol.itemssource..

    Web.SupplierAccount currentItem = radGridView1.SelectedItem as Web.SupplierAccount;
    Web.SupplierAccount newrow = new Web.SupplierAccount();
    radGridView1.Items.Insert(radGridView1.Items.IndexOf(currentIte


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 24 Jan 2011 Link to this post

    Hi,

     When the grid is bound (ItemsSource is assigned) you cannot modify Items collection. You should do this in your ItemsSource instead. 

    Kind regards,
    Vlad
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Keshava
    Keshava avatar
    9 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2011 Link to this post

    Can you provide me with a sample to work out this
  5. David
    David avatar
    15 posts
    Member since:
    Nov 2011

    Posted 26 Jan 2012 Link to this post

    But wat if the ItemsSource is a QueryableDomainServiceCollectionView?
Back to Top