gi11ies
Programmer
- Mar 26, 2002
- 52
Hi
I have a datagrid, and wish to put a $ symbol in beside the cost, has anyone any tips on how to do this?
My datagrid code is:
<aspataGrid id="scartdg" AutoGenerateColumns="false" runat="server">
<columns>
<asp:HyperLinkColumn HeaderText ="Product" DataTextField="Product" DataNavigateUrlField="ProductID" DataNavigateUrlFormatString="../products/item.aspx?id={0}"/>
<asp:boundcolumn HeaderText="Qty" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Quantity" />
<asp:boundcolumn HeaderText="Price (each)" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Cost" />
</columns>
</aspataGrid>
I'd like to put it along with:
<asp:boundcolumn HeaderText="Price (each)" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Cost" />
Any help would be great !!!!
Gillies
I have a datagrid, and wish to put a $ symbol in beside the cost, has anyone any tips on how to do this?
My datagrid code is:
<aspataGrid id="scartdg" AutoGenerateColumns="false" runat="server">
<columns>
<asp:HyperLinkColumn HeaderText ="Product" DataTextField="Product" DataNavigateUrlField="ProductID" DataNavigateUrlFormatString="../products/item.aspx?id={0}"/>
<asp:boundcolumn HeaderText="Qty" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Quantity" />
<asp:boundcolumn HeaderText="Price (each)" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Cost" />
</columns>
</aspataGrid>
I'd like to put it along with:
<asp:boundcolumn HeaderText="Price (each)" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" DataField="Cost" />
Any help would be great !!!!
Gillies