Datagrid with Edit and Delete Buttons - HELP

Sep 25, 2008 at 3:54 AM
Hi there,
      I am using this Datagrid but i am stuck on ways to achieve a simple thing.  I am having a datagrid which displays records in it .. I have a "Edit" button for each row and checkboxes for multiple Deletes. Now my problem is, i want to open another window on click of Edit. How will i know which row is the user on when he clicks Edit? the same goes for deleting .. how will i know which checkbox the user has checked. There are not many examples for this DataGrid. Can anybody please help...

Sep 25, 2008 at 4:56 AM
For the "Edit" button, if it is added to a cell (DataGridTemplateColumn), when you click it DataGrid will update CurrentItem to that row.  So you can access the row through CurrentItem.  For the checkboxes see this thread,