How do I select a row in a nested table

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();

1 Reply

JM Jay Mooney 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.

Loader.
Up arrow icon