<asp:TemplateField HeaderText="是否已付款">
                                                <ItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" Text='<%# (bool)Eval("bPay")?"是":"否"%>'>    
                                                    </asp:Label>
                                                </ItemTemplate>
 </asp:TemplateField>

 

也可以在取出来的时候用sql语句判断

select cPact_No, 
(case when bPrice = 1  then '是'
 when bPrice = 0 then '否'  end)
from tbl_Execute_Net

posted on 2008-05-06 17:52  星答  阅读(911)  评论(0编辑  收藏  举报