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.
Unfortunately, activation email could not send to your email. Please try again.

Removing item from datasource list

Thread ID:

Created:

Updated:

Platform:

Replies:

125018 Jul 14,2016 01:24 PM Jul 20,2016 06:15 AM Windows Forms 5
loading
Tags: GridGroupingControl
Vanderson assis da silva
Asked On July 14, 2016 01:24 PM

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

Vanderson assis da silva
Replied On July 15, 2016 10:16 AM

Please somebody help me! =/

Nicolas
Replied On July 15, 2016 11:43 AM

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 08:01 AM

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.  


Vanderson assis da silva
Replied On July 19, 2016 10:30 AM

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

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

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

Regards, 
Anish. 
  
  


CONFIRMATION

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.

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.

;