U
Usenet User
I have a datagrid bound to a dataset table.
Unfortunately, the table's primary key consists of not 1, but 3
columns, so I cannot correctly set the DataKeyField property of the
grid (it only allows for 1 column), and, therefore, cannot use syntax
like below in the event handlers in order to retrieve the primary key
of the row:
this.gridList.DataKeys[e.Item.ItemIndex]
I still need to be able to get the values of all 3 key columns, yet I
am not sure how. Any ideas?
TIA!
Unfortunately, the table's primary key consists of not 1, but 3
columns, so I cannot correctly set the DataKeyField property of the
grid (it only allows for 1 column), and, therefore, cannot use syntax
like below in the event handlers in order to retrieve the primary key
of the row:
this.gridList.DataKeys[e.Item.ItemIndex]
I still need to be able to get the values of all 3 key columns, yet I
am not sure how. Any ideas?
TIA!