Tuesday, September 20, 2011

to show the decimal format of a value in gridview

we have to add like this while binding the data...                                                                                    <asp:Label ID="lbl_PackageRate" runat="server" Text='<%#Eval("Rate","{0:0.00}") %>'></asp:Label>

No comments:

Post a Comment