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.

Remove relation from Data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

14135 May 19,2004 02:19 AM May 19,2004 02:31 AM Windows Forms 1
loading
Tags: GridControl
Alexander Arlievsky
Asked On May 19, 2004 02:19 AM

Hi, I have to remove the prevously added relation from data bound grid (at runtime). How it can be done? (Actually I have to replace it by another one) We use sync 1.6 Thank you.

Administrator [Syncfusion]
Replied On May 19, 2004 02:31 AM

I think you will have to rebind. this.gridDataBoundGrid1.BeginUpdate(); object o = this.gridDataBoundGrid1.DataSource; string s = this.gridDataBoundGrid1.DataMember; this.gridDataBoundGrid1.Binder.ResetHierarchyLevels(); this.gridDataBoundGrid1.DataMember = ""; this.gridDataBoundGrid1.DataSource = null; this.gridDataBoundGrid1.DataMember = s; this.gridDataBoundGrid1.DataSource = o; GridHierarchyLevel level0 = this.gridDataBoundGrid1.Binder.RootHierarchyLevel; GridHierarchyLevel level1 = this.gridDataBoundGrid1.Binder.AddRelation("ParentToChild"); this.gridDataBoundGrid1.EndUpdate(); this.gridDataBoundGrid1.Refresh();

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.

;