Hi,
I have 2 gridviews in a page, one hierarchical and one normal gridview.
I am using javascript to update data from one gridview row to the other.
To be able to do that, I need to find the html id of the control in each gridview:
Normal gridview: ctl00_MainContent_ctl_Score_rep_ctl01_ckIsFlag is equivalent to
ctl00_MainContent_ctl_Rubric_GV_ctl00_ctl04_ckIsFlag in the hierarchical gridview.
In the normal gridview the 'ctl01' increment by one for each row. So if I have 3 rows, the ID will be:
'ctl00_MainContent_ctl_Score_rep_ctl01_ckIsFlag
'ctl00_MainContent_ctl_Score_rep_ctl02_ckIsFlag
'ctl00_MainContent_ctl_Score_rep_ctl03_ckIsFlag
I use the index of each row to find which control to update:
"ctl00_MainContent_ctl_Score_rep_ctl" + rowindex +"_ckIsFlag"
However in the hierarchical grid, the first row has ctl04, the second row ctl07 and the third ctl10. I don't really understand how the incrementation works. as the number of records in the detail view is 4 rows, and identical for all.
My question is how do I find out the html id control in the hierarchical gridview (ctl04, ctl07 and ctl10). Please check the attachment for more clarity.
Thank you for your help