AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 gridview count
Posted by sreekumark on  2/14/2008 6:29:13 AM Category: ADO.NET
Add to my favorites
Email to friend
asp.net(c#) 2005
i have to get the gridview rows count in a column.any body help?

Post Your Reply Post New Question

 Viewer's Reply
To get GridViews Row Count
Answered By Moderator1 on 2/15/2008 7:48:14 PM
Use

int RowCount=GridView1.Rows.Count;
 
GridViews Row Count
Answered By Kavita Tilloo on 5/27/2008 10:53:46 AM
You can use:

int totalRows = GridView1.Rows.Count;
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Introduction to Software Development
Introduction to Web Applications Development
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!