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

Removing item from datasource list

Thread ID:





125018 Jul 14,2016 05:24 PM UTC Jul 20,2016 10:15 AM UTC WinForms 5
Tags: GridGroupingControl
Vanderson assis da silva
Asked On July 14, 2016 05:24 PM UTC

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!!!


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

Please somebody help me! =/

Replied On 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

Anish George [Syncfusion]
Replied On 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. 

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

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

Anish George [Syncfusion]
Replied On July 20, 2016 10:15 AM UTC

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



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

or the page will be automatically redirected to 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