hi
I use below code in gridview:
<asp:TemplateField ItemStyle-Width="282px" ItemStyle-VerticalAlign="Middle" ItemStyle-Height="37px">
<ItemTemplate>
<asp:Label ID="Lblgroup" runat="server" Text='<%# Eval("GroupName")%>' CssClass="ViewNG" ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="48px" ItemStyle-VerticalAlign="Middle">
<ItemTemplate>
<asp:Label runat="server" Text="Label">neda</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField EditText = "changename" UpdateText = "Edit" CancelText = "cancel" ShowEditButton="false" ItemStyle-Width="100px" ButtonType="Link" ControlStyle-CssClass="linkGVE" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ShowCancelButton="False" CausesValidation="false" ItemStyle-BackColor="#84BA00" />
I want if Lblgroup.text (Groupname)=="show" it make below Item template.visibility=true
<asp:TemplateField ItemStyle-Width="48px" ItemStyle-VerticalAlign="Middle">
<ItemTemplate>
<asp:Label runat="server" Text="Label">show</asp:Label>
</ItemTemplate>
</asp:TemplateField>
and make commandfield.visibility=false
how I can do it?
best regards
neda