Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在网格视图的 Bound 字段中使用 $ 符号显示负余额(-$400)。
<asp:BoundField DataField="Balance" HeaderText="Balance" ReadOnly="True" />
我已经这样做了
<asp:BoundField DataField="Balance" DataFormatString = "{0:$,0}" HeaderText="Balance" ReadOnly="True" />