Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
Insert Row Inbetween records
posted

Hi

I would like to insert row inbetween existing records. Not using the collection of the datagrid. But in a generic way and It should be available as a functionality to all my datagrids in my application.

Thanks,

Ayyappan

 

Parents
No Data
Reply
  • 4475
    posted

    Hello,

     

    I have been looking into your question and in order to add records you can use the DataItems.Insert method.

     

    Notice that if you use DataItems collection you should not use DataSource. You can use :

     

    xamDataGrid1.DataItems.Add(“some text”);

     

    and then add records within

     

    xamDataGrid1.DataItems.Insert(3,"insert test");

     

    that will insert record in the third position

     

     

    Please in case of future concerns do not hesitate to ask.

     

    Sincerely,

    Ekaterina

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support

     

Children