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. Creat a new row in Gridview dynamically

Creat a new row in Gridview dynamically

Scheduled Pinned Locked Moved ASP.NET
design
8 Posts 2 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.
  • A Offline
    A Offline
    AS 13
    wrote on last edited by
    #1

    Hello Everybody, I want to design a gridview where there is a option to create a new row for the user. suppose there is a button and by clicking the button a new blank row added to the gridview. The user can add more than one row. If possible make the button present in a column of the gridview so that when the user click the button a new row created along with the button column also. plz give some idea to do or the solution. Happy Coding... :) AS@13

    AS

    _ 1 Reply Last reply
    0
    • A AS 13

      Hello Everybody, I want to design a gridview where there is a option to create a new row for the user. suppose there is a button and by clicking the button a new blank row added to the gridview. The user can add more than one row. If possible make the button present in a column of the gridview so that when the user click the button a new row created along with the button column also. plz give some idea to do or the solution. Happy Coding... :) AS@13

      AS

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      You can take a look at this[^]. This will help you out in that.

      Apurva Kaushal

      A 1 Reply Last reply
      0
      • _ _AK_

        You can take a look at this[^]. This will help you out in that.

        Apurva Kaushal

        A Offline
        A Offline
        AS 13
        wrote on last edited by
        #3

        Hi, Thanks yaar.. But it not solve my problem... the problem is that the button should be in last column of the Gridview and user can create more than one row as per the requirement.. plz help me out.. Happy Coding :)

        AS

        _ 1 Reply Last reply
        0
        • A AS 13

          Hi, Thanks yaar.. But it not solve my problem... the problem is that the button should be in last column of the Gridview and user can create more than one row as per the requirement.. plz help me out.. Happy Coding :)

          AS

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          Regarding the columns you can have it where ever you want. And for adding multiple rows once he has added one record afterwards he can again add another one.

          Apurva Kaushal

          A 1 Reply Last reply
          0
          • _ _AK_

            Regarding the columns you can have it where ever you want. And for adding multiple rows once he has added one record afterwards he can again add another one.

            Apurva Kaushal

            A Offline
            A Offline
            AS 13
            wrote on last edited by
            #5

            But I also want to display those new entries in gridview to the user. plz send me the code if u have. Thanks

            AS

            _ 1 Reply Last reply
            0
            • A AS 13

              But I also want to display those new entries in gridview to the user. plz send me the code if u have. Thanks

              AS

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              Once he has added the row you can bind the gridview again after that you will get the gridview with the added row.

              Apurva Kaushal

              A 1 Reply Last reply
              0
              • _ _AK_

                Once he has added the row you can bind the gridview again after that you will get the gridview with the added row.

                Apurva Kaushal

                A Offline
                A Offline
                AS 13
                wrote on last edited by
                #7

                Ok Thanks a lot...

                AS

                _ 1 Reply Last reply
                0
                • A AS 13

                  Ok Thanks a lot...

                  AS

                  _ Offline
                  _ Offline
                  _AK_
                  wrote on last edited by
                  #8

                  Always welcome.. :)

                  Apurva Kaushal

                  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