Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to find CheckBoxes(in Header & Row) of Child GridView in a nested GridView(Parent and only one Child Gridview) using JAVASCRIPT/JQUERY? Please kindly help me. Thanks in advance!.
Posted
Updated 27-Apr-15 20:08pm
v2
Comments
Andy Lanng 27-Apr-15 6:42am    
Do you use jQuery?
Member 11598660 28-Apr-15 9:24am    
yes.
Suvendu Shekhar Giri 28-Apr-15 2:43am    
When you want to find those controls ? On some event?
Check the answer here for a similar kind of question
How to access Textbox and Label value from Child Gridview in Javascript?
Member 11598660 28-Apr-15 9:27am    
I want to find in child gridview's check box(Header and Row checkbox) click event. Thank you very much for your answer.
What have you tried so far?

1 solution

Inside the chkGameChild_CheckedChanged event, get the child GridView current row and highlight it like...
C#
// Get the current GridView Row, from which the CheckBox is checked.
GridViewRow currentRow = (GridViewRow)chkGameChild.NamingContainer;
currentRow.BackColor = Color.LightYellow;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900