|
-
Enable and Disable Checkbox in Datagrid
Hello,
I have a databound checkbox as an TemplateColumn-ItemTemplate in a datagrid
in ASP.Net. When the page loads, I want the checkbox to be disabled. However,
when I click edit, I want the checkbox to appear enable so that then can
check or uncheck the checkbox. When I click update, I then want the checkbox
to be appear disabled to the user again.
I want to do this because its stupid to keep the checkbox enabled when not
in edit mode.
Or in otherwords, how can I access the checkboxe's properties in the datagrid,
and then make then appear disabled or enabled? Trying to use e.Item.cell(2).???
is of no use.
Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks