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. Image for the cookie policy date

Removing item from datasource list

Hi, me again! =D
I'm trying to remove a record from gridGroupingControl but no success. =(

I've tried gridGroupingControl.Table.DeleteRecord(gridGroupingControl.Table.CurrentRecord); but nothing hapenned, then I've tried to remove the item from the list which is the datasource like this: translations.RemoveAll(t => t.Id == id); this line DO remove the item from the list, and it seems like the item was removed from the grid too, but when I move the grid cursor to another line, the removed item gets back to the grid.... =/ ... if anyone could show me a sample code on how to remove a (row, record, line) from the groupingControlGrid I would really apporeciate!!!

Thanks!!

5 Replies

VA Vanderson assis da silva July 15, 2016 02:16 PM UTC

Please somebody help me! =/


NI Nicolas July 15, 2016 03:43 PM UTC

Here, hope this helps

Public Sub DeleteToolStripMenuItem_Click(GGC As GridGroupingControl)
        Dim r As Syncfusion.Grouping.Record = GGC.Table.CurrentRecord
        If (Not IsNothing(r)) Then r.Delete()
End Sub

- Nicolas


AG Anish George Syncfusion Team July 18, 2016 12:01 PM UTC

Hi Vanderson, 
 
Thank you for using Syncfusion products. 
 
There is a dashboard sample explaining how to add/ remove records from data source. Please refer the dashboard sample located in the below path for more information. 
 
Dashboard Location: 
<Installed_Location>\Syncfusion\EssentialStudio\<Installed_Version>\Windows\Grid.Grouping.Windows\Samples\Data Sources\IBindingList Demo\ 
 
Please let us know if you need any further assistance. 
 
Regards, 
Anish.  



VA Vanderson assis da silva July 19, 2016 02:30 PM UTC

Thank you all! I'm going to try them. =D


AG Anish George Syncfusion Team July 20, 2016 10:15 AM UTC

Hi Vanderson
  
Thank you for your update. 
  
Please let us know if you need any further assistance. 

Regards, 
Anish. 
  
  


Loader.
Up arrow icon