Clicking cancel affects more than one row in edit mode

J

John Dalberg

I have master/detail datagrids where each master row has a detail datagrid.
I have included a linkbutton in the child datagrid's footer to add a new
row. If I click on the add link in more than one child datagrid, each grid
gets a new row with an update/cancel options of the edit template. So far
so good.

However if I click cancel on one child datagrid, all the new rows of all
the child datagrids get cancelled too. I am not sure why this is happening.
I am using the code from this kb:
http://support.microsoft.com/default.aspx?scid=kb;en-us;815004

I verified that the DataGridSub_CancelCommand event gets fired only once.
So my guess was that maybe all the child datagrids have the same uniqueid
but it doesn't look like it's the case.

Any ideas?

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,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top