hi,
can anyone tell me how to use checkbox with in the grid view and how it is checked
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepthi AravindPosted Apr 1, 2011, 2:15 AM
Add Grid view column as Template Field
You can find the check box value by,
CheckBox chk=(CheckBox)GridView1.Rows[index].FindControl("chkSelect");
//index means the rowindex of the GridView which you want to know the check Box status
Then you can check whether it is selected or not using,
if(chk.Checked==true/False)
Suthish NairPosted Mar 31, 2011, 3:06 PM
Soft CornerPosted Mar 31, 2011, 11:59 AM
Look for Our recommended articles at rightSide.
Article : Selecting Checkboxes inside the GridView Control
Vijay YadavPosted Mar 31, 2011, 8:57 AM
Please see the below links, it will help you...
http://www.codeproject.com/KB/webforms/SelChkboxesDataGridView.aspx
http://www.codeproject.com/KB/webforms/GridView_all_in_one.aspx
karthi vimalaPosted Mar 31, 2011, 8:06 AM
Vijay YadavPosted Mar 31, 2011, 7:55 AM