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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. GridView _ Add New Record

GridView _ Add New Record

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 2 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.
  • H Offline
    H Offline
    hung_ngole
    wrote on last edited by
    #1

    Hi, How can I add a new row to the bottem of gridview? Thanks much, Hung.

    Hung

    P 1 Reply Last reply
    0
    • H hung_ngole

      Hi, How can I add a new row to the bottem of gridview? Thanks much, Hung.

      Hung

      P Offline
      P Offline
      Pualee
      wrote on last edited by
      #2

      The gridview has a Rows property which represents the collection of rows in the grid. Have you tried manipulating this collection directly? For instance: GridView.Rows.Add(new Object[] {1, "Value"}) I also think you could create a new GridViewRow object separately and then later add it to the GridView.Rows collection. I must confess, I'm a bit of a novice myself and just here trying to answer questions to force myself to learn more :-) Good luck!

      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