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. set a datasource for gridview

set a datasource for gridview

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelp
5 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.
  • J Offline
    J Offline
    joindotnet
    wrote on last edited by
    #1

    I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.

    C K X 3 Replies Last reply
    0
    • J joindotnet

      I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You would need to store the table in the session, b/c it needs to persist between postbacks, that's what the data base is for, usually.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • J joindotnet

        I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.

        K Offline
        K Offline
        Kashif Sabir
        wrote on last edited by
        #3

        You can easily bind a table in session by casting it i.e grid.datasource = (DataTable)Session["Datatable"]; grid.databind(); And providing inline editing is also possible.

        J 1 Reply Last reply
        0
        • J joindotnet

          I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.

          X Offline
          X Offline
          Xmen Real
          wrote on last edited by
          #4

          add this in columns of GV

          remove xmlns:asp="#unknown", CC bug in posting

          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

          1 Reply Last reply
          0
          • K Kashif Sabir

            You can easily bind a table in session by casting it i.e grid.datasource = (DataTable)Session["Datatable"]; grid.databind(); And providing inline editing is also possible.

            J Offline
            J Offline
            joindotnet
            wrote on last edited by
            #5

            hi Kashif, Thanks for bothering. I know how to bind my gv with a table. I just wanna know how can I provide inline editing facility. I hv taken EditItemTemplate and a textbox in it. I cant figure out how to show this text box when user clicks edit. Any help is appreciated. Thanks..

            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