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();
- }


Yogesh GhorpadeRank #2,756 · 509 reputationPosted Jun 26, 2018, 11:55 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Jun 27, 2018, 12:10 AM EDT