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. Image for the cookie policy date

Remove relation from Data bound grid

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.

1 Reply

AD Administrator Syncfusion Team May 19, 2004 01: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();

Loader.
Live Chat Icon For mobile
Up arrow icon