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.

Delete the selected record programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

96838 Oct 8,2010 03:39 PM Oct 12,2010 01:39 AM Windows Forms 1
loading
Tags: GridControl
David Mecteaux
Asked On October 8, 2010 03:39 PM

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

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.

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.

;