Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > [ASP.NET] GridView & ItemTemplates

Reply
Thread Tools

[ASP.NET] GridView & ItemTemplates

 
 
Sody
Guest
Posts: n/a
 
      06-12-2008
Hi, is in gridview any way how to control from codebehid if an
itemtemplate in gridview will be set to visible = true / false ?

here is an example of gridview with more itemtemplates

<asp:GridView ID="grdTracking" runat="server" AutoGenerateColumns="False"
BorderWidth="0" GridLines="Horizontal" Width="100%">
<FooterStyle />
<Columns>
<asp:TemplateField HeaderText="&nbsp;"
SortExpression="ARTIKELBESCHREIBUNG">
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left"
CssClass="gridrows" />
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Font-Bold="true" Text="Bestellung A 123456 vom 21.12.2007"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server"
Text="Bestellung befinden Sich in folgendem Bestellstatus"></asp:Label>
<br />
<br />
<span class="stufe1">Bestellung eingegangen</span>
<br />
<br />
</ItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Font-Bold="true" Text="Bestellung A 123456 vom 21.12.2007"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server"
Text="Bestellung befinden Sich in folgendem Bestellstatus"></asp:Label>
<br />
<br />
<span class="stufe2">Bestellung eingegangen
&nbsp;&nbsp; Bestellung akzeptiert</span>
<br />
<br />
</ItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Font-Bold="true" Text="Bestellung A 123456 vom 21.12.2007"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server"
Text="Bestellung befinden Sich in folgendem Bestellstatus"></asp:Label>
<br />
<br />
<span class="stufe3">Bestellung eingegangen
&nbsp;&nbsp; Bestellung akzeptiert &nbsp;&nbsp;
Bestellung in Bearbeitung</span>
<br />
<br />
</ItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Font-Bold="true" Text="Bestellung A 123456 vom 21.12.2007"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server"
Text="Bestellung befinden Sich in folgendem Bestellstatus"></asp:Label>
<br />
<br />
<span class="stufe4">Bestellung eingegangen
&nbsp;&nbsp; Bestellung akzeptiert &nbsp;&nbsp;
Bestellung in Bearbeitung &nbsp;&nbsp;
Bestellung im Versand </span>
<br />
<br />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<AlternatingRowStyle CssClass="gridrows" />
</asp:GridView>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Repeater and ItemTemplates Mr Not So Know It All ASP .Net 1 01-24-2007 03:41 AM
Painfully slow GridView when using ItemTemplates and EditItemTemplates! Robert Pettersson ASP .Net Datagrid Control 0 11-20-2006 02:20 PM
Nested DDL in GridView ItemTemplates bigbrorpi@gmail.com ASP .Net 2 04-05-2006 03:26 PM
Datagrid with textboxes on itemtemplates Luis Esteban Valencia ASP .Net 0 01-26-2005 02:15 PM
Datallist with 2 different <itemtemplates> aaapaul ASP .Net 3 06-21-2004 06:30 AM



Advertisments