datagrid样式控制的问题???! http://dotnet.aspx.cc/ShowDetail.aspx?id=A27CA611-2DE7-432D-8DBC-1512CEFDAA53 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把 <asp:DataGrid 标签中的 height 属性 和 style="" 中的 height栏式 删除就行了。 你把DataGrid的Height删掉,让它为空给你段代码asp:datagrid id="dgCounSys" runat="server" AutoGenerateColumns="False" CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" Width="100%"> <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 Visible="False" DataField="no" HeaderText="编号"></asp:BoundColumn> <asp:ButtonColumn DataTextField="no" HeaderText="编号" CommandName="Select"> <ItemStyle Width="15%"></ItemStyle> </asp:ButtonColumn> <asp:BoundColumn DataField="title" HeaderText="标题"> <HeaderStyle Width="55%"></HeaderStyle> </asp:BoundColumn> <asp:BoundColumn DataField="pubDate" HeaderText="制度年月"> <ItemStyle Width="15%"></ItemStyle> </asp:BoundColumn> <asp:BoundColumn DataField="Releasename" HeaderText="发布人"> <ItemStyle Width="15%"></ItemStyle> </asp:BoundColumn> </Columns> </asp:datagrid> 自动定义404错误 求SQL语句一条 求一个asp.net上传图片的例子? datalist 显示数据 求一SQL语言? 请问各位高手在asp.net(c#)的打印怎么实现?还有怎么去掉浏览器中的菜单栏和工具栏和IE地址栏? 急:关于取得Request对象的问题 ext.net动态创建GridPanel后分页问题 急,ASP.NET中的问题? response.redirect的问题 请教:这个sql语句怎么写!! 简单++问题
给你段代码
asp:datagrid id="dgCounSys" runat="server" AutoGenerateColumns="False" CellPadding="3" BackColor="White"
BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" Width="100%">
<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 Visible="False" DataField="no" HeaderText="编号"></asp:BoundColumn>
<asp:ButtonColumn DataTextField="no" HeaderText="编号" CommandName="Select">
<ItemStyle Width="15%"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn DataField="title" HeaderText="标题">
<HeaderStyle Width="55%"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="pubDate" HeaderText="制度年月">
<ItemStyle Width="15%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Releasename" HeaderText="发布人">
<ItemStyle Width="15%"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:datagrid>