GridView clickable bound CheckBox

knappster

Active member
Joined
Nov 13, 2006
Messages
42
Programming Experience
Beginner
Hi,
I have a gridview which is bound to a SQLDataSource. One of the bound fields is a CheckBox field. This displays ok, it is checked or unchecked depending on the value in the datasource, but it is greyed out, I can't click on the checkbox to change it's state. I want the users to be able to change the checkbox state without going into edit mode. Can this be done?
 

MattP

Well-known member
Joined
Feb 29, 2008
Messages
1,206
Location
WY, USA
Programming Experience
5-10
Changing the column to a template field and then removing Enabled = False from the ItemTemplate will make it selectable. From there I'd take a look at the OnCheckedChanged event.
 
Top Bottom