Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Counting parent and child rows of SwfTable
posted

I would like to count how many child rows under each parent for a SwfTable. But it cannot recognise the child row under the parent row. 

 

  

Parents
  • 6729
    Offline posted
    Hi, The trick is that child rows property is not directly located under the row object, and this is because the each grid row can have more than one child rows collection, each can be located under ChildBands[index] property. So to access the first child rows collection under the first row you would use: SwfTable("...").GetNAProperty("Rows[0].ChildBands[0].Rows.Count")and to so this for the second collection assuming it exist:SwfTable("...").GetNAProperty("Rows[0].ChildBands[1].Rows.Count")You can check how many child band there is for a specific row by getting the count of that collection:SwfTable("...").GetNAProperty("Rows[0].ChildBands.Count") I hope that will help.Regards,

    Ammar

Reply Children
No Data