Grid View Doubt

  • Thread starter Thread starter Charmingpri
  • Start date Start date
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

Similar Threads

VB6 Component Issue with TDBGRID 0
Grid view 1
gridview problem 1
GridView(ASP.NET 2.0) 1
Grid View and ODS 3
Hyperlink field in grid view 1
Gridview Edit 1
Group data in GridView 2

Back
Top