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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I select a row in a nested table

Thread ID:

Created:

Updated:

Platform:

Replies:

38941 Dec 21,2005 04:34 PM UTC Dec 21,2005 05:13 PM UTC WinForms 1
loading
Tags: GridControl
Jay Mooney
Asked On December 21, 2005 04:34 PM UTC

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 05:13 PM UTC

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.

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

;