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,

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 ...
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.