Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Trouble Deleting DataRecords
posted

Hello,

I'm having trouble deleting Selected Rows  on the XamDataGrid.

The Code:

{

   DataPresenterCommands.DeleteSelectedDataRecords.Execute(null, My_Grid);
   My_Grid.UpdateLayout();

}

seems not to work for me. Code executes but there is no error message and nothing changes on the grid. I also tried:

{

My_Grid.ExecuteCommand(DataPresenterCommands.DeleteSelectedDataRecords);

}

which leads to the same behavior.

The Grid.Fieldsettings CellClickAction was set on "SelectRecord". Is there anything I don't see?? Perhaps it's a beginner question but any help would be highly appreciated. Added a simple sample project.

XamGrid_DeleteRows.zip