0

Hi,
I am using VS 2008, asp.net and VB coding.
Using Grid View,
How can I access the data of the selected row if the column type is check box?
The following line is working fine with text, date, number,
lbltest.Text = GridViewRVs.SelectedRow.Cells(7).Text

but the problem is that I need to access a checkbox
any help please?

Thanks,

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by thines01
0

If your checkbox has an ID, you can reference it by the ID:
...something like:

' from memory
CheckBox cb = (CheckBox) gridView1.Controls("cb1")
if(cb.Checked) then ...

Edited by thines01: clarity

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.