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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vijay YadavRank #1,637 · 943 reputationPosted Mar 31, 2011, 3:55 AM EDT
karthi vimala38 reputationPosted Mar 31, 2011, 4:06 AM EDT
Vijay YadavRank #1,637 · 943 reputationPosted Mar 31, 2011, 4:57 AM EDT
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
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 31, 2011, 7:59 AM EDT
Look for Our recommended articles at rightSide.
Article : Selecting Checkboxes inside the GridView Control
Suthish NairRank #92 · 22.8K reputationPosted Mar 31, 2011, 11:06 AM EDT
Deepthi Aravind53 reputationPosted Mar 31, 2011, 10:15 PM EDT
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)