<asp:GridView ID="GridView1" EmptyDataText="No Data" runat="server">
<Columns>
<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<asp:Label ID="lbl1" runat="server" Visible='<%# (Eval("Status").ToString() == "1" ? true : false)%>'
Text="Issued"></asp:Label>
<asp:Label ID="Label2" runat="server" Visible='<%# (Eval("Status").ToString() == "0" ? true : false)%>'
Text="Available"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<Columns>
<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<asp:Label ID="lbl1" runat="server" Visible='<%# (Eval("Status").ToString() == "1" ? true : false)%>'
Text="Issued"></asp:Label>
<asp:Label ID="Label2" runat="server" Visible='<%# (Eval("Status").ToString() == "0" ? true : false)%>'
Text="Available"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
No comments:
Post a Comment