If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

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.