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. How to save datagrid values in the database.

How to save datagrid values in the database.

Scheduled Pinned Locked Moved ASP.NET
databasecsssql-serversysadmintutorial
5 Posts 3 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.
  • J Offline
    J Offline
    jaraldumary
    wrote on last edited by
    #1

    How to save an grid values in database (sql server 2005)at runtime.. Is there any link refer to me.. Thanx in advance..

    S R 2 Replies Last reply
    0
    • J jaraldumary

      How to save an grid values in database (sql server 2005)at runtime.. Is there any link refer to me.. Thanx in advance..

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, maybe this link: http://www.wherecanibuyit.co.uk/ASP/fully_editable_gridview.html[^] or this one: http://www.codeproject.com/KB/custom-controls/PSGridView.aspx[^] Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      1 Reply Last reply
      0
      • J jaraldumary

        How to save an grid values in database (sql server 2005)at runtime.. Is there any link refer to me.. Thanx in advance..

        R Offline
        R Offline
        Reza Raad
        wrote on last edited by
        #3

        what do you mean exactly?? did you mean you want to update/select/insert/delete data on database from datagrid?? if you mean this,don't worry this is a simple job, just use SqlDataAdapter and set these commands for it: SelectCommand UpdateCommand DeleteCommand InsertCommand see this sample for more details: http://www.c-sharpcorner.com/UploadFile/raj1979/GridViewExample11232008075052AM/GridViewExample.aspx[^]

        Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

        J 1 Reply Last reply
        0
        • R Reza Raad

          what do you mean exactly?? did you mean you want to update/select/insert/delete data on database from datagrid?? if you mean this,don't worry this is a simple job, just use SqlDataAdapter and set these commands for it: SelectCommand UpdateCommand DeleteCommand InsertCommand see this sample for more details: http://www.c-sharpcorner.com/UploadFile/raj1979/GridViewExample11232008075052AM/GridViewExample.aspx[^]

          Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

          J Offline
          J Offline
          jaraldumary
          wrote on last edited by
          #4

          No i dont want to edit,update,select command.For example if i am loading an xml file to the project during run time.that particular file details must stored in database automatically... help me. Thanx in advance.

          R 1 Reply Last reply
          0
          • J jaraldumary

            No i dont want to edit,update,select command.For example if i am loading an xml file to the project during run time.that particular file details must stored in database automatically... help me. Thanx in advance.

            R Offline
            R Offline
            Reza Raad
            wrote on last edited by
            #5

            in general you can export your xml data to sqlserver using SSIS(Integration Service) but if you mean that your xml data binded to a grid and you want to insert these data into sqlserver from your grid, i think you can generate a datatable from your grid data, and then insert your datatable into sqlserver table completely.

            Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

            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