Grid View Doubt

C

Coskun SUNALI [MVP]

Hi,

If it is a BoundField, by setting its ReadOnly property as below.

<asp:BoundField ........... ReadOnly="true" />

If it is a TemplateField, by putting readonly controls, instead of a control
like CheckBox, TextBox, etc. in "EditItemTemplate".

<asp:TemplateField ...........>
<ItemTemplate>
<asp:Label Text='<%# Eval("FieldName") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:Label Text='<%# Eval("FieldName") %>' />
</EditItemTemplate>
</asp:TemplateField>

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,459
Latest member
Vida00R129

Latest Threads

Top