Datakey in Datagrid

J

J. Ormaetxe

Hello,

I am developing a Datagrid thar insert, delete and update rows in a Table.
This table has got 2 fields that are primary key. How can i detect which row
is selected to delete??
Thanks,

Asier
 
I

Imtiaz Hussain

The DataGridCommandEventArgs argument for the delete command will give you
the row. E.Item.Cells(0).Text
I dont see how the primary key fields are relevant here.

Hope this helps.

Imtiaz Hussain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top