Read Boolean value from ASP.NET DataGrid Control

V

Vijay Kerji

Hello,

How to read Boolean value from web form datagrid control?
I have template column with Radio button control in it.
I would like to read the boolean value of the radio buttons which are
placed on the data grid control?
(Windows form Datagrid control allows indexing, G[][], unlike wed form
data grid!!!)

Thanks in advance,

Vijay K Kerji
 
S

Scott M.

Dim radioButtonValue as boolean =
CType(e.item.FindControl("radioButtonName"),RadioButton).checked
 
V

Vijay Kerji

Scott,
Thanks.
1) Since my development environment is C#, is there any equivalent to
CType in C#?
2)If multiple radio buttons are created dynamically, how to read the
values of each radio button?

Any help is appreciated.

Regards

Vijay K Kerji



Scott M. said:
Dim radioButtonValue as boolean =
CType(e.item.FindControl("radioButtonName"),RadioButton).checked


Vijay Kerji said:
Hello,

How to read Boolean value from web form datagrid control?
I have template column with Radio button control in it.
I would like to read the boolean value of the radio buttons which are
placed on the data grid control?
(Windows form Datagrid control allows indexing, G[][], unlike wed form
data grid!!!)

Thanks in advance,

Vijay K Kerji
 
S

Scott M.

I'm sorry, I don't know the C# code vesion of this.

Each row in the grid is accessible via the e.item parameter of most of the
grid events. Item then exposes a cells collection to determine which column
of the grid you are dealing with and the cells exposes a controls:

e.Item.Cells(n).controls(n)



Vijay Kerji said:
Scott,
Thanks.
1) Since my development environment is C#, is there any equivalent to
CType in C#?
2)If multiple radio buttons are created dynamically, how to read the
values of each radio button?

Any help is appreciated.

Regards

Vijay K Kerji



Scott M. said:
Dim radioButtonValue as boolean =
CType(e.item.FindControl("radioButtonName"),RadioButton).checked


Vijay Kerji said:
Hello,

How to read Boolean value from web form datagrid control?
I have template column with Radio button control in it.
I would like to read the boolean value of the radio buttons which are
placed on the data grid control?
(Windows form Datagrid control allows indexing, G[][], unlike wed form
data grid!!!)

Thanks in advance,

Vijay K Kerji
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top