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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Delete the selected record programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

96838 Oct 8,2010 07:39 PM UTC Oct 12,2010 05:39 AM UTC WinForms 1
loading
Tags: GridControl
David Mecteaux
Asked On October 8, 2010 07:39 PM UTC

Hi, How do you delete the currently selected record programmatically.

I have tried:
//grdSavedPlans.Table.SelectedRecords[0].Record.Delete();
//grdSavedPlans.Table.SelectedRecords.DeleteAll();
grdSavedPlans.Table.CurrentRecord.Delete();
//grdSavedPlans.Table.Records.Delete(grdSavedPlans.Table.SelectedRecords[0].Record);
//grdSavedPlans.DataSource = DB.RecentPlan.LoadAll();
//grdSavedPlans.Refresh();



On a side note is there any plans on improving the search engine for the forums and for the online documents? It seems like they are not very useful.


Jisha Joy [Syncfusion]
Replied On October 12, 2010 05:39 AM UTC

Hi David,

You could use the following code to delete the currenr record. See the code:

this.gridGroupingControl1.Table.CurrentRecord.Delete();


Regards,
Jisha


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.

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

;