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.
Syncfusion Feedback

Remove relation from Data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 06:31 AM UTC

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.

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

;