How to set a particular column as non editable in grid view
Grid View Doubt
Collapse
This topic is closed.
X
X
-
=?Utf-8?B?Q2hhcm1pbmdwcmk=?=Tags: None -
Coskun SUNALI [MVP]
Re: Grid View Doubt
Hi,
If it is a BoundField, by setting its ReadOnly property as below.
<asp:BoundFie ld ........... ReadOnly="true" />
If it is a TemplateField, by putting readonly controls, instead of a control
like CheckBox, TextBox, etc. in "EditItemTempla te".
<asp:TemplateFi eld ...........>
<ItemTemplate >
<asp:Label Text='<%# Eval("FieldName ") %>' />
</ItemTemplate>
<EditItemTempla te>
<asp:Label Text='<%# Eval("FieldName ") %>' />
</EditItemTemplat e>
</asp:TemplateFie ld>
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
"Charmingpr i" <Charmingpri@di scussions.micro soft.comwrote in message
news:88BEFBB3-F304-41D3-8548-AF916695AC06@mi crosoft.com...How to set a particular column as non editable in grid view
Comment