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. GridView + .net 2.0

GridView + .net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharptutorial
3 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.
  • T Offline
    T Offline
    trilokharry
    wrote on last edited by
    #1

    how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks

    You get the best out of others when you give the best of yourself.

    A B 2 Replies Last reply
    0
    • T trilokharry

      how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks

      You get the best out of others when you give the best of yourself.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      From Aspx page you can do that :)

      Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

      1 Reply Last reply
      0
      • T trilokharry

        how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks

        You get the best out of others when you give the best of yourself.

        B Offline
        B Offline
        bokuceres
        wrote on last edited by
        #3

        something that change in gridview, you can assign value directly to boundfield and set the boundfield.visible = false then you want to catch that value. well, it happened while i was at project. you have to put a control to templatefield (in this case hiddenfield is great), assign it with data like example below. when you want to get the value, you have to use FindControl method, catch the control, get the value. ex: '<%#DataBinder.Eval(Container.DataItem, "PolicyNo")%>' hope it helps tell me if my writing's confusing

        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