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. General Programming
  3. C#
  4. Check Box inside a datagrid in VS2003

Check Box inside a datagrid in VS2003

Scheduled Pinned Locked Moved C#
cssdatabasehelpworkspace
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.
  • A Offline
    A Offline
    Anthony Surendran
    wrote on last edited by
    #1

    Hi, I have a situation where I have to have a check box inside a Data grid. And the datagrid will be filled by set of rows from a database. selecting a check box should enble me to find the exact row in the databse. I tried a number of articles. But nothing could do what exactly I want. Can any one help me out. Environment: VS2003. Thanks in advance

    Rate This Message. A.Surenth.

    S 1 Reply Last reply
    0
    • A Anthony Surendran

      Hi, I have a situation where I have to have a check box inside a Data grid. And the datagrid will be filled by set of rows from a database. selecting a check box should enble me to find the exact row in the databse. I tried a number of articles. But nothing could do what exactly I want. Can any one help me out. Environment: VS2003. Thanks in advance

      Rate This Message. A.Surenth.

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

      Anthony Surendran wrote:

      selecting a check box should enble me to find the exact row in the databse.

      This is easiest when your table has a primary key defined. Make sure the data that populates the grid also has the primary key returned. You can bind the primary key to a hidden column in the grid and use that as a future reference to find the corresponding row in the table.

      SG

      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