How to get key value in a master datagrid from a detail datagrid?

J

John Dalberg

I have a nested datagrid in a datagrid. Each row in the master datagrid
will have a child datagrid. One of the columns in the child datagrid has a
copy of the key of the master row.


However when the child datagrid is empty and a user needs to a add a new
row, I have no reference to which master row they are in.

How do I reference the Datakeys collection of the master datagrid and the
needed index when a user clicks a button in the child datagrid? My add
button is in the footer of the child datagrid.

John Dalberg
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top