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
Parents
  • 560
    posted

    Is the Deleting behavior of the Grid connected to the DataSource ??

    ( In the example I am using the grids BindToSampleData = "true" property.)

    If so ... which requirement must be met in order to have the  possibillity to delete a record??

Reply Children
No Data