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. Hiding value into grid view

Hiding value into grid view

Scheduled Pinned Locked Moved ASP.NET
csstutorial
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.
  • B Offline
    B Offline
    Bandanenilima
    wrote on last edited by
    #1

    Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge

    P G 2 Replies Last reply
    0
    • B Bandanenilima

      Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      instead of storing it in any column and hiding it you can use datakeys..... sample code: //in RowEditing event int row = e.NewEditIndex; string id = GridView1.DataKeys[row][0].ToString();

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      1 Reply Last reply
      0
      • B Bandanenilima

        Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge

        G Offline
        G Offline
        Gary Stafford
        wrote on last edited by
        #3

        If I understand your question correctly, wouldn't setting the columns Visible property to false provide you with the solution you seek (Visible="false"). This is a very common technique.

        Regards, Gary

        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