DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006

    Storing a hidden key value for each row in a datagrid

    I have a datagrid which displays some information and it also has a Delete button column.

    My problem is I do not want to display the id (database key) associated with the record on the page, but I need this value to delete the record when the user clicks delete. Is there a way to store the key value somewhere so that when the user clicks delete I can delete it from the database. This key value is the only thing guarenteed to be unique, so I can't do a findbyvalue on a column with text in it.

  2. #2
    Join Date
    Jan 2006
    nevermind there is apparently a visible property for datagrid columns. I can just make the column hidden

  3. #3
    Join Date
    Dec 2005
    South of Nowhere, Maine
    You can also set the Column Width of the column to 0. This will effectively hide that column.

Similar Threads

  1. Replies: 0
    Last Post: 10-07-2005, 10:28 AM
  2. Replies: 1
    Last Post: 06-01-2005, 09:22 AM
  3. A problem of locating a row in Datagrid
    By Anu in forum VB Classic
    Replies: 0
    Last Post: 01-16-2003, 05:42 AM
  4. Deleting a row from a DataGrid
    By John Reynolds in forum VB Classic
    Replies: 0
    Last Post: 10-19-2001, 12:24 PM
  5. clicking on fixed row of datagrid?
    By surfsail in forum VB Classic
    Replies: 0
    Last Post: 03-22-2001, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center