Click to See Complete Forum and Search --> : How can I delete one row according to multiple column primary key ?


Robert Chu
10-18-2006, 06:02 AM
Hello,
I have a delete button in each row of a datagrid. But the datakey field can only have one column. I need to use two columns to decide which row to delete. How can I do it ?

drallab
10-20-2006, 03:42 PM
Hey,

You could use one key field as the datakey and the other is placed in a label in a hidden template column of the datagrid. Then access that row's label in the hidden column when the button is clicked. :)