TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jes Sie
747
1.2k
282.5k
How to get number of checked rows in a gridview using c#
Jun 27 2018 3:34 AM
Good afternoon everyone. I need a help.
I have a gridview and inside it is a checkbox. I want to get only the number of rows if the checkbox is checked. I tried the code below but it count the whole rows of the gridview.
if
(checkbox.Checked ==
true
)
{
lblCheckItems.Text = GridView1.Rows.Count.ToString();
}
thanks for any assistance.
Reply
Answers (
2
)
Can override browser default setting ?
How to call API from controller with multiple json parameter