Write to us
MS SQL Server
Free Tech Magazines
Asp.Net Web Hosting
Link to Us
Questions & Answers
Tips & Tricks
How to Loop through GridView Rows? GridViewRow
6/17/2008 8:49:40 PM
Use GridViewRow class to loop through or navigate the GridView rows from outsite the GridView control's event.
For example, you need to navigate all the rows in a gridview control and find a child control placed inside it. The sample code below helps you to find a Checkbox placed inside a GridView control.
foreach (GridViewRow gvrow in GridView1.Rows)
CheckBox CheckBox1 = (CheckBox)gvrow.FindControl("CheckBox1");
//Do your operations here.
Post New Tips/Tricks
View all Tips/Tricks
Windows 8: 50 Questions and Answers You Need to Make a Decision (Normally $9.95)
A guide to help you make an informed decision and determine the best way to use Windows 8 personally or professionally.
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
100% Free Subscription until Stock lost.
View complete list.
. www.AspdotnetCodes.com. All rights reserved.