As Composite Key concept says that there can
be more than one primary keys in a database table .
I want two different columns to store two primary keys and both of them make
composite key in my database
here we can have only one key
Dim productID As String =
MyDataList.DataKeys(MyDataList.SelectedItem.ItemIn dex)
CategoryID and ProductID together make composite key in my database.I faced
this problem when updating database record having composite key ,
i give you more detail
catid = 001 prodid =001
catid = 001 prodid =002
catid=002 prodid =001
If you look in primary keys , records are repeating but as composite they
are not .
if i update record with prodid then i will have two records updated .
"Felbrigg" <so*****@microsoft.com> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
Are your strying to store more than one item of data in an item?
"Ismail Rajput" <hu************@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Is there any option we can use Composite DataKeyField in the DataList
and DataGrid?