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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Master-Detail with Virtual Grid

Thread ID:





13360 Apr 27,2004 01:14 PM UTC Apr 27,2004 06:03 PM UTC WinForms 1
Tags: GridControl
Asked On April 27, 2004 01:14 PM UTC

I''ve seen your examples of using two grids in a master detail relationship by employing the use of the datasource and datamember properties of each grid in a databound scenario. However, does the grid provide similar built in functionality when both grids are used in "virtual mode"? Or will I have wire up all that functionality myself? Are there any examples that exist dealing with my scenario? Thank you for your help.

Administrator [Syncfusion]
Replied On April 27, 2004 06:03 PM UTC

Hi Peter, yes you will have to wire these events yourself. In a GridDataBoundGrid the grid listens to CurrencyManager.PositionChanged events and repositions the current row based on that event. Also, the Windows Forms Currency Manager loads the data for the detail grid whenever the CurrencyManager.Current property is changed. With a virtual grid there is no CurrencyManager support unless you would explicitly add support for it. But wiring to Current Cell events should not be difficult. The events that you should be most interested in the parent grid are CurrentCellActivated and CurrentCellMoved. These events will be raised when the cell is moved. Within your event handlers you could check if the current cell was moved to a new row or if it stayed at the same row. If it was moved to a new record then you could get the data from that row and replace the datasource of your details grid so that it then displays the table that belongs to the record in the parent table. Stefan


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon