Copy required columns from gridview to other gridview

2 posts, 0 answers
  1. Oleg
    Oleg avatar
    1 posts
    Member since:
    Apr 2012

    Posted 20 Oct 2013 Link to this post

    I have some problems with copying required columns from one gridview to another gridview!
    Firstly, I download table from Excel, then I give my own HeaderText to some columns using ContextMenu.
    And I need to copy only these columns with my HeaderText to another gridview.
    I tried some variants but it didn't work!
    How can I do that?

    Thanks in advance.
  2. Dimitar
    Admin
    Dimitar avatar
    2913 posts

    Posted 23 Oct 2013 Link to this post

    Hello Oleg,

    Thank you for writing.

    This functionality to directly copy columns from one grid to another is not supported by RadGridView.

    In this case first we can create similar columns in the second grid and then also copy the rows. Sample implementation of this approach is available in the attached project.

    Please let me know if there is something else I can help you with.

    Regards,
    Dimitar
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top