sir, i'm using ASP.Net 2.0,
i'm using a gridview in a form and i want to create a check boxes dynamically in each row of my grid view so that i can select multiple values from that grid, i want to use those selected values for some manipulation in the same form.
Shubhib
0
Newbie Poster
Recommended Answers
Jump to Post{ foreach (GridViewRow row in GridView1.Rows) { if (((CheckBox)row.FindControl("CheckBox1")).Checked == true) { ((CheckBox)rows.FindControl("CheckBox1")).Text(); } } }
try this code ... hope it will work for you
Jump to Postu have to use row command event to achieve this functionality.
All 6 Replies
raj416
2
Newbie Poster
Shubhib
0
Newbie Poster
greeny_1984
14
Posting Whiz
binoj_daniel
14
Practically a Master Poster
Shubhib
0
Newbie Poster
hopel7758
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.