We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem deleting selectedRecords

Thread ID:





126303 Oct 6,2016 12:47 PM UTC Oct 7,2016 07:29 AM UTC WinForms 1
Tags: GridGroupingControl
Pierre Smith
Asked On October 6, 2016 12:47 PM UTC

Hi There I hope someone can help me
For some reason when I select lets say 10 items in my grid. And I then delete those records by using  
then the first 8 records would delete correctly but the last 2 selected records would jump down a few rows to some other records and delete those records 

Can anyone help please 

Piruthiviraj Malaimelraj [Syncfusion]
Replied On October 7, 2016 07:29 AM UTC

Hi Pierre, 
Thanks for using Syncfusion products. 
We had analyzed your query. We suspect that you are using BindingList datasource. If you are using BindingList datasource in your application, ListChangedEventHandler must be triggered with ListChangedType as ItemDeleted in RemoveAt() method of IBindingList. Please make use of the below code, 
Code example 
public event System.ComponentModel.ListChangedEventHandler ListChanged; 
public void RemoveAt(int index) 
    RaiseListChanged(ListChangedType.ItemDeleted, index); 
void RaiseListChanged(ListChangedType type, int index) 
    if (ListChanged != null) 
        ListChanged(this, new ListChangedEventArgs(type, index)); 
Sample link 
KB link 
If you are using any other datasource, can you please provide the simple sample. So that we can provide solution at the earliest. 
Please let us know if we misunderstood anything. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon