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. Datagrid.. push button

Datagrid.. push button

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
2 Posts 2 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.
  • R Offline
    R Offline
    rameshdontagani
    wrote on last edited by
    #1

    hi i have a datagrid..in the datagrid there are two columns.. named "username" and push button columns named "send"(like edit button in the datagrid").. i have the two userid values "5,1"(i am getting thsese values dynamically".. now i have todisable the pushbuttons whose userid are 5 and 1. how can i do this in asp.net

    S 1 Reply Last reply
    0
    • R rameshdontagani

      hi i have a datagrid..in the datagrid there are two columns.. named "username" and push button columns named "send"(like edit button in the datagrid").. i have the two userid values "5,1"(i am getting thsese values dynamically".. now i have todisable the pushbuttons whose userid are 5 and 1. how can i do this in asp.net

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      hi, in the datarow bound event you can hide cell. like. if(e.row.cell[1].text == "1" || e.row.cell[1].text == "5" ) { e.row.cell[1].visible == false; } format as required.

      Thanks, Sun Rays To get something you must have to try once. My Articles

      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