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.

How do I select a row in a nested table

Thread ID:





38941 Dec 21,2005 11:34 AM Dec 21,2005 12:13 PM Windows Forms 1
Tags: GridControl
Jay Mooney
Asked On December 21, 2005 11:34 AM

Here''s the scenario: I have a parent table with a nested child table. I expand 2 rows in the parent table. Now, I want to select the 3rd row in the child table associated with the 2nd expanded row. I''m using the following code: GridRangeInfo gri = GridRangeInfo.Cell(3, 3); string tbl = gridRecordRow.ParentTableDescriptor.Name; GridTableControl gtc = this.gridGroupingControl.GetTableControl(tbl); gtc.ForceCurrentCellMoveTo = true; gtc.CurrentCell.MoveTo(gri, GridSetCurrentCellOptions.SetFocus, true); gtc.CurrentCell.ScrollInView(GridScrollCurrentCellReason.FindText); gtc.CurrentCell.Refresh();

Jay Mooney
Replied On December 21, 2005 12:13 PM

Ok, found it: grr.ParentRecord.SetCurrent(gcd.Name); This keeps me from going out to a parent (non-filtered) table. Also allows me to specify which column to display without calculating indexes.


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.