-
Question on template column
Hi,
I have a datagrid DG which will display several columns of data. One of the columns, which is display-only, is a status field showing "Yes" or "No" according to the data value "Y" or "N". So I change the column to a template column and try to add a listBox control with two items added. It seems to be fine until I display it in the browser. I find that I could change the value in the listBox. Although there is no Save button or function to store changes back to database, I would like to know how to prevent the changing of listBox value.
Thank you very much.
-
If you don't want the user to be able to change the value, why not just print "Yes" or "No" rather than use a listbox?
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Hi Phil Weber,
Thank you and that is a good idea. However, I don't know how to code for printing "Yes"/"No". Do I need to code in the template or ...?
Please advise. Thanks
-
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Thanks Phil Weber,
I have read the example and it really gives me some hints. But I would like you to explain a bit further that where should these codes put? If the data value is not "Y"/"N" but is other characters, e.g. "P"/"S"/"T", what should it compare ?
** I am sorry that I make a mistake: This question should be put in .NET Technical instead of ASP.NET.
Last edited by THL; 08-26-2005 at 04:12 AM.
Similar Threads
-
By neo00 in forum ASP.NET
Replies: 2
Last Post: 06-16-2005, 10:46 AM
-
By sriramKumar in forum .NET
Replies: 1
Last Post: 05-07-2005, 10:57 AM
-
By Philip Rayne in forum ASP.NET
Replies: 1
Last Post: 10-11-2002, 10:25 AM
-
By Dave Kraft in forum XML
Replies: 0
Last Post: 01-10-2002, 09:08 AM
-
By Yury in forum Database
Replies: 2
Last Post: 11-16-2001, 09:21 AM
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