Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making CheckBox in the GridView editable
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01310520
Message ID:
01310541
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform