如何将grid的模板表头的HeaderText显示出来

nswhy 2009-03-24 10:17:40
我将grid的表头设置为摸版,里面放入控件,现在不能显示标题,希望能够显示摸板控件和表头文字
一共在两列里显示
...全文
154 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
mmrwbb01 2009-03-25
  • 打赏
  • 举报
回复
路过
nswhy 2009-03-25
  • 打赏
  • 举报
回复
上面这种样式是放到vs2008的gridview中实现的
请高手帮忙
nswhy 2009-03-25
  • 打赏
  • 举报
回复

<BODY bgcolor="#efffff" style="background-color : #efffff;">
<TABLE class="sample">
<TABLE>
<tr>
<TD width="20" nowrap="nowrap" bgcolor="#6666ff"><strong>
<label></label>
</strong></TD>
<TD width="46" height="18" nowrap="nowrap" bgcolor="#6666ff"><span class="style3">Actions</span></TD>
<TD width="49" nowrap="nowrap" bgcolor="#6666ff"><span class="style3">Status</span></TD>
<TD width="89" nowrap="nowrap" bgcolor="#6666ff"><span class="style3">System No</span></TD>
<TD width="89" nowrap="nowrap" bgcolor="#6666ff"><span class="style3">Quotation No</span></TD>
</tr>
<tr>
<TD bgcolor="#dfdfdf"><strong>
<input type="checkbox" name="checkbox" id="checkbox" /><FONT color="#cccccc">
</FONT></strong></TD>
<TD bgcolor="#cccccc"><label>
<input name="na" type="button" value="filter" /><FONT color="#dfdfdf">
</FONT></label></TD>
<TD height="18" nowrap="nowrap" bgcolor="#cccccc"><input type="text" class="txtinput" /></TD>
<TD bgcolor="#dfdfdf"><INPUT type="text" class="txtinput"></TD>
<TD bgcolor="#dfdfdf"><INPUT type="text" class="txtinput"></TD>
</tr>
<tr>
<TD bgcolor="#dfdfdf"><input type="checkbox" name="checkbox2" id="checkbox2" /></TD>
<TD bgcolor="#dfdfdf"><input name="na" type="button" value="Delete" /><input name="na" type="button" value="Edit" /></TD>
<TD height="18" nowrap="nowrap" bgcolor="#dfdfdf">New RFQ</TD>
<TD bgcolor="#dfdfdf">RPQ20081000001</TD>
<TD bgcolor="#dfdfdf">RPQ20081000001</TD>
</tr>
<tr>
<TD bgcolor="#ffffcc"><input type="checkbox" name="checkbox3" id="checkbox3" /></TD>
<TD bgcolor="#ffffcc"><input name="na" type="button" value="Delete" /><input name="na" type="button" value="Edit" /></TD>
<TD height="18" nowrap="nowrap" bgcolor="#ffffcc">New RFQ</TD>
<TD bgcolor="#ffffcc">RPQ20081000001</TD>
<TD bgcolor="#ffffcc">RPQ20081000001</TD>
</tr>
<tr>
<TD bgcolor="#dfdfdf"><input type="checkbox" name="checkbox4" id="checkbox4" /></TD>
<TD bgcolor="#dfdfdf"><input name="na" type="button" value="Delete" /><input name="na" type="button" value="Edit" /></TD>
<TD height="23" nowrap="nowrap" bgcolor="#dfdfdf">New RFQ</TD>
<TD bgcolor="#dfdfdf">RPQ20081000001</TD>
<TD bgcolor="#dfdfdf">RPQ20081000001</TD>
</tr>
</TABLE>
<TABLE>
</BODY>

koukoujiayi 2009-03-24
  • 打赏
  • 举报
回复
加一个Label显示列名,如下:
............
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text="你的列名"> </asp:Label>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
</ItemTemplate>
zhoulehua 2009-03-24
  • 打赏
  • 举报
回复
顶起。
boyaijuan 2009-03-24
  • 打赏
  • 举报
回复
期待````
benjaminwu198818 2009-03-24
  • 打赏
  • 举报
回复
夜深了,有点晕…帮顶顶
我姓区不姓区 2009-03-24
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 nswhy 的回复:]
现在是要显示两个东东,我也晕呀,有什么好办法
[/Quote]
我没太看懂你的意思,能举个例子吗
nswhy 2009-03-24
  • 打赏
  • 举报
回复
现在是要显示两个东东,我也晕呀,有什么好办法
wesleyluo 2009-03-24
  • 打赏
  • 举报
回复
不是有个ColunmHeaderVisable属性吗?
  • 打赏
  • 举报
回复
晕 帮顶
我姓区不姓区 2009-03-24
  • 打赏
  • 举报
回复
啥意思?要同时显示模板和HeaderText?

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧