GridView and checkbox

I already implemented checkbox in gridview but its always null

Page 1 of 1

1 Replies - 2895 Views - Last Post: 10 April 2008 - 07:47 AM Rate Topic: -----

#1 irshadvaza92   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-April 08

GridView and checkbox

Post icon  Posted 01 April 2008 - 03:38 AM

for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked = ((CheckBox)row.FindControl("CheckBox2")).Checked;


}
Is This A Good Question/Topic? 0
  • +

Replies To: GridView and checkbox

#2 JasonMcAuley   User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 144
  • Joined: 10-April 08

Re: GridView and checkbox

Posted 10 April 2008 - 07:47 AM

Can you post your front end code with your gridview declaration?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1