P
Paul
Hi,
I am using Datagrid quite a lot to show lists of items from a database
that I might want to delete / edit.
These database entries are uniquely identified by a single integer ID
field and when I edit/delete I want to use this primary key to pass
into stored procedures used to edit/delete the item.
Since the user does not know or care about seeing this ID field in the
grid the solution that I use at the moment (and I dont really like it)
is to return the ID field when I query the database and include in the
grid but I set the visibility of the column showing that would display
this ID value to "false" so that the user cannot see this but I can
get at this data when edit/deletes are performed.
Surely there is a 'better' way to do this?? If so I like to know!!
Thanks,
Paul
I am using Datagrid quite a lot to show lists of items from a database
that I might want to delete / edit.
These database entries are uniquely identified by a single integer ID
field and when I edit/delete I want to use this primary key to pass
into stored procedures used to edit/delete the item.
Since the user does not know or care about seeing this ID field in the
grid the solution that I use at the moment (and I dont really like it)
is to return the ID field when I query the database and include in the
grid but I set the visibility of the column showing that would display
this ID value to "false" so that the user cannot see this but I can
get at this data when edit/deletes are performed.
Surely there is a 'better' way to do this?? If so I like to know!!
Thanks,
Paul