This is a migrated thread and some comments may be shown as answers.

how to get checkbox value?

1 Answer 95 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Liu Yan
Top achievements
Rank 1
Liu Yan asked on 30 Jul 2008, 03:16 PM

In a RadGrid, within the grid I have a clomun that shows as a checkbox. When users choose a single record, and then click Botton, in clieked events How do I know if the selected records the value of the Checkbox?

if using Microsoft Grid,correct syntax is as follows:
bool bIsLocked = ((CheckBox)GridView1.Rows[GridView1.SelectedIndex].Cells[9].Controls[0]).Checked;

But if using RadGrid,how to code?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Jul 2008, 09:47 AM
Hi,

Can you specify which column you are using? Are you using a GridCheckBoxColumn or a GridTemplateColumn with a CheckBox in it or a GridClientSelectColumn. I would suggest you to send your aspx.

Thanks
Shinu.
Tags
Chart (Obsolete)
Asked by
Liu Yan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or