| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 512 人关注过本帖
标题:DATAGRID导到EXECL表中字符少0,急啊————求大神给力
只看楼主 加入收藏
飞年合
Rank: 2
等 级:论坛游民
帖 子:21
专家分:50
注 册:2013-7-29
结帖率:50%
收藏
 问题点数:0 回复次数:0 
DATAGRID导到EXECL表中字符少0,急啊————求大神给力
前台代码
FONT><asp:datagrid style="Z-INDEX: 0" id="gv_HandReport" runat="server" Width="959px" AutoGenerateColumns="False" Height="258px" Font-Size="12px" OnItemDataBound="gvUsers_RowDataBound">
                                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
                                <ItemStyle ForeColor="#000066"></ItemStyle>
                                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
                                <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                <Columns>
                                    <asp:BoundColumn DataField="ID" HeaderText="id"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="VendorAccount" HeaderText="代号"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="VendorName" HeaderText="供应商"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="CustomsID" HeaderText="物料代号"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="CustomsName" HeaderText="物料名称"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Unit" HeaderText="单位"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Amount" HeaderText="数量"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="InvoiceAmount" HeaderText="金额"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="InvoiceCode" HeaderText="发票号码"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="InvoiceDate" HeaderText="开票日期" DataFormatString="{0:yyyy-MM-dd}"></asp:BoundColumn>
                                    <asp:ButtonColumn Text="del" CommandName="edit" HeaderText="删除"></asp:ButtonColumn>
                                </Columns>
                            </asp:datagrid>
下面这是我网上找的代码,没报错,但是没反应,求大神帮忙!!!!
 Protected Sub gvUsers_RowDataBound(ByVal sender As System.Object, ByVal e as DataGridItemEventArgs)
        If e.Item.ItemType = ListItemType.Item.EditItem Then
            e.Item.Cells(3).Attributes.Add("style", "mso-number-format:\@;")
        End If
    End Sub
搜索更多相关主题的帖子: server False style 前台 
2013-11-06 16:04
快速回复:DATAGRID导到EXECL表中字符少0,急啊————求大神给力
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019278 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved