Grid View Doubt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Q2hhcm1pbmdwcmk=?=

    Grid View Doubt

    How to set a particular column as non editable in grid view
  • Coskun SUNALI [MVP]

    #2
    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

    We are JAKALA. The leading European player in AI-powered, data-driven performance.


    "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

    Working...