Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making CheckBox in the GridView editable
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01310520
Message ID:
01310541
Views:
7
This message has been marked as a message which has helped to the initial question of the thread.
If it's a bound field, then by default it will be read-only in the regular view and then if you add a edit command link it will be active when you're editing the row. If you want the checkbox to be active in the regular view you'd need to convert it to a template field and then change the checkbox enabled property in the itemtemplate. You then need to have a button to check through all the rows in the gridview to persist the checkbox values that have been changed.

>Hi everybody,
>
>I looked through several links but I'm still not clear as how to make the CheckBox field in a GridView to be easily clickable. In my current view it is
>
>
><asp:CheckBoxField DataField="Approved" HeaderText="Approved" SortExpression="Approved" />
which makes it readonly.
>
>I need to be able to simply click on this checkbox. Do you know how can I set up this field in a GridView?
>
>Thanks a lot in advance.
Regards,

E.R. Gilmore
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform