Raising an handling and event on a checkbox in a gridview...

S

Stu Lock

Hi,

I have a checkbox in a gridview template column with autopostback turned on.
I want to be able to handle this event but am unsure how. With other control
of this nature I have used CommandName and CommandArgument - but these are
not available on checkboxes.

Also, the checkbox does not raise the RowCommand event to catch it there.

I cannot use the CheckboxField as the I am binding to a column which has to
set 4 states:

-1 = Not visible
0 = Enabled & unchecked
50 = Enabled & checked
100 = Disabled & checked

Any ideas how best to achieve this?

Thanks in advance,

Stu
 
G

Guest

Hi Stu,

I got your problem, as you already know the values, why cant you use the
Java script to assign the values. by this you can assign the values to the
checkbox and then post them when you are sending the infromation to DB or . .
.. . .
if you still want the information please update me.
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top