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.

DataBoundGrid with relation

Thread ID:

Created:

Updated:

Platform:

Replies:

43307 Apr 20,2006 04:09 AM Apr 20,2006 07:19 AM Windows Forms 1
loading
Tags: GridControl
Kai
Asked On April 20, 2006 04:09 AM

How do I NOT show the same rows in the grid when there is a self join relation in the dataset that the grid is bounding to?

Administrator [Syncfusion]
Replied On April 20, 2006 07:19 AM

Hi Kai, There is no built-in support for hide the duplicate record in a GridDataBoundGrid.The GridDataBoundGrid only displays what is presented to it by its DataSource.If you want to hide the duplicate record, then you need to implement your own support for hiding the duplicate record in a GridDataBoundGrid.Here is a code snippet for hide a Row/Reocrd //Rows this.grid.Model.Rows.Hidden[5] = true; //For hide the 5 th Row this.grid.Model.Rows.Hidden[5] = false; //For show the 5 th Row //get the record index using Binder int RecordIndex = this.gridDataBoundGrid1.Binder.RowIndexToPosition(5) this.grid.Model.Rows.Hidden[RecordIndex] = true; Let us know if this helps. Best Regards, Haneef

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.

;