how to hide Zero Values in gridview

sadia644

Member
Joined
Aug 25, 2009
Messages
15
Programming Experience
Beginner
Can any one help me i want to hid zero value from showing in gridview i use datarow it hide whole colume

i want to hid only zero value for example PC_wt if is zero then it should not display 0
i want to in this colume where word is using wt it display 0 in gridview

<asp:TemplateField >
<HeaderTemplate><b>Material Consumed</b></HeaderTemplate>
<ItemStyle Width="300px" />
<ItemTemplate >

<b> <%# Eval("PC_Mat")%> </b>
<b><%# Eval("PC_wt")%> </b>
<b><%# Eval("PC_Ins_Mat")%> </b>
<b><%#Eval("PC_Ins_wt")%> </b>
<b><%# Eval("SCR_Mat")%> </b>
<b><%#Eval("SCR_wire_wt") %> </b>
<b><%# Eval("CS_Mat")%> </b>
<b><%# Convert.ToString(Eval("CS_wt"))%> </b>
<b><%# Eval("SCR_tap_Mat")%> </b>
<b><%# Eval("SCR_tap_wt")%> </b>
<b><%# Eval("Semi_tap_Mat")%> </b>
<b><%# Eval("Semi_tap_wt")%> </b>
<b><%# Eval("NM_IS_Mat")%> </b>
<b><%# Eval("NM_IS_wt")%> </b>
<b><%# Eval("M_IS_Mat")%> </b>
<b><%# Eval("M_IS_tap_wt")%> </b>
<b><%# Eval("Filler_wt")%> </b>
<b><%# Eval("Armour_Mat")%> </b>
<b><%# Eval("Armour_wt")%> </b>
<b><%# Eval("BeddingMat")%> </b>
<b><%# Eval("Bedd_wt")%> </b>
<b><%# Eval("SheathMat")%> </b>
<b><%# Eval("Sheath_wt")%> </b>
</ItemTemplate>
</asp:TemplateField>
 
Back
Top