Hi Pierre,
Thanks for contacting Syncfusion support.
As per the GridGroupingControl current support, the changes of records will be updated/reflected in the underlying data base when the entity framework implements theINotifyPropertyChanged interface. So, we request you to ensure that the INotifyPropertyChanged is implemented in the entity class. We have created a simple sample to delete the selected records from the grid and underlying data source and the records are deleted properly. Please make use of the below code and sample to delete the records,
Code example
|
//To select the records
gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;
//Event Customization
private void deleteBtn_Click(object sender, EventArgs e)
{
//To check for SelectedRecords
if (gridGroupingControl1.Table.SelectedRecords.Count > 0)
{
//To delete the records from grid
gridGroupingControl1.Table.SelectedRecords.DeleteAll();
//To delete particular selected record from grid
gridGroupingControl1.Table.SelectedRecords[index].Delete();
}
} |
Note
Please let us know your Syncfusion product version and the way of populating data to the grid, if we misunderstood your scenario. Moreover, refer the attached sample and let us know, if we missed anything from your customization which causes the issue. So that, we could analyze further and provide you a better solution at the earliest.
Regards,
Arulpriya