Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. copy gridview structure to other gridview

copy gridview structure to other gridview

Scheduled Pinned Locked Moved ASP.NET
tutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mhiny
    wrote on last edited by
    #1

    how to copy structure of gridview to other gridview

    A A 2 Replies Last reply
    0
    • M Mhiny

      how to copy structure of gridview to other gridview

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      What do you mean by structure? You mean columns?

      Ahsan Ullah Senior Software Engineer

      1 Reply Last reply
      0
      • M Mhiny

        how to copy structure of gridview to other gridview

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Mhiny wrote:

        how to copy structure of gridview to other gridview

        do you want copy one grid view data to another Grid view or Copy only the fields ?

        cheers, Abhijit

        M 1 Reply Last reply
        0
        • A Abhijit Jana

          Mhiny wrote:

          how to copy structure of gridview to other gridview

          do you want copy one grid view data to another Grid view or Copy only the fields ?

          cheers, Abhijit

          M Offline
          M Offline
          Mhiny
          wrote on last edited by
          #4

          yes.i want to copy column's structure from first gridview to second gridview at runtime.

          A A M 3 Replies Last reply
          0
          • M Mhiny

            yes.i want to copy column's structure from first gridview to second gridview at runtime.

            A Offline
            A Offline
            AhsanS
            wrote on last edited by
            #5

            I guess you should add columns dynamically rather then copying them. An after thought to my previous answer. I think DataGridView.Clone property will solve your problem as well

            Ahsan Ullah Senior Software Engineer

            modified on Tuesday, August 19, 2008 1:36 AM

            1 Reply Last reply
            0
            • M Mhiny

              yes.i want to copy column's structure from first gridview to second gridview at runtime.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              then do the same thing that you have done for grid1.

              cheers, Abhijit

              1 Reply Last reply
              0
              • M Mhiny

                yes.i want to copy column's structure from first gridview to second gridview at runtime.

                M Offline
                M Offline
                Member 8410720
                wrote on last edited by
                #7

                d

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups