Author Topic: Get the parent row of a child row  (Read 1997 times)

shoushouleb

  • Newbie
  • *
  • Posts: 12
    • View Profile
Get the parent row of a child row
« on: August 15, 2018, 03:06:04 pm »
Hello,

If I have the rowIndx of a row inside a detail grid, how can I get its parent row in the main grid?

See the image please:
the row with the data {1,test} has the parent row with ID CLN00742. How I can get this row?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Get the parent row of a child row
« Reply #1 on: August 23, 2018, 11:31:44 am »
Parent row can be obtained as rowData parameter passed to gridDetailModel function as in this example:

https://paramquery.com/demos/detail