stephenk1973
Technical User
How do i format gridview cells so that '0's are invisible?
Any suggestions please , this is stumping me.
Thanks
Stephen
Any suggestions please , this is stumping me.
Thanks
Stephen
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Protected Function getNo(intNo As Object) As String
If intNo = 0 Then
Return "" ' might need to modify this..
End If
End Function
..and then in the Grid use a Template Column..
<asp:TemplateColumn HeaderText="MyInt">
<HeaderStyle horizontalalign="Center" verticalalign="Middle"></HeaderStyle>
<ItemStyle horizontalalign="Center"></ItemStyle>
<ItemTemplate>
<asp:Label id="intMyNo" runat="Server" Text=<%# getNo(Container.DataItem("intNo"))%>/>
</ItemTemplate>
</asp:TemplateColumn>