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. Add row to Gridview

Add row to Gridview

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 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.
  • K Offline
    K Offline
    kjosh
    wrote on last edited by
    #1

    Hi, I have a gridview and file upload control. When the user attaches a file then I need to add that file name to gridview. In grdiview i have 2 columns one for title and date added. Title is title of the file and date is Datetime.Now How to add that information as a row to Gridview when they upload the file. Thanks

    A D F 3 Replies Last reply
    0
    • K kjosh

      Hi, I have a gridview and file upload control. When the user attaches a file then I need to add that file name to gridview. In grdiview i have 2 columns one for title and date added. Title is title of the file and date is Datetime.Now How to add that information as a row to Gridview when they upload the file. Thanks

      A Offline
      A Offline
      Aavesh Agarwal
      wrote on last edited by
      #2

      The idea i can give you is that when you uplaod ur file save the name of file in the database and after that bind the table with gridview. Hope it will work for you. :) Sucess needs one Master Stroke :) Thanks and Regards Aavesh Agarwal

      1 Reply Last reply
      0
      • K kjosh

        Hi, I have a gridview and file upload control. When the user attaches a file then I need to add that file name to gridview. In grdiview i have 2 columns one for title and date added. Title is title of the file and date is Datetime.Now How to add that information as a row to Gridview when they upload the file. Thanks

        D Offline
        D Offline
        Dhyanga
        wrote on last edited by
        #3

        ya i also agree with Aavesh..

        suchitamanandhar@hotmail.com

        1 Reply Last reply
        0
        • K kjosh

          Hi, I have a gridview and file upload control. When the user attaches a file then I need to add that file name to gridview. In grdiview i have 2 columns one for title and date added. Title is title of the file and date is Datetime.Now How to add that information as a row to Gridview when they upload the file. Thanks

          F Offline
          F Offline
          firozu
          wrote on last edited by
          #4

          Mahimam wrote:

          How to add that information as a row to Gridview when they upload the file.

          According to me it would be better if you can store the filenames in an ArrayList, after the file is finished uploading, and then bind this arraylist to the GridView. Simple isn't it?:)

          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