Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,
I have a gridview named as gvMaster and a nested gridview named as nestedGridView. I have added check boxes to rows of nestedGridView. Now, how can I check all the rows by selecting header row of nestedGridView.
ThankYou
Posted

no me funciono me puedes ayudar
 
Share this answer
 
Comments
[no name] 18-Nov-14 16:35pm    
Maybe someone can, but for this you need to ask a proper question in "Code Project-->quick answers-->Ask a Question" ...in English.

Tal vez alguien pueda, pero para ello es necesario hacer una pregunta correcta en el "Code Project-->quick answers-->Ask a Question" ... en Inglés :)
If you added the nestedGridView into gvMaster dynamically.
You access the it like this:
C#
GridView gv = ((GridView)gvMaster.Rows[0].Cells[0].Controls[0]);

If you added the in ASP.NET page with tags in ItemTemplate, you access it like this:
C#
GridView gv = ((GridView)gvMaster.Rows[0].Cells[0].FindControl("nestedGridView"));
 
Share this answer
 
Comments
osama.javed 18-Oct-12 6:06am    
Thank you so much Adrianc
Jαved 19-Nov-14 2:10am    
5ed.

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