我记得HTML里有这种功能,
就是<td valign=top>内容</td>,
让这些内容显示在列的最上面,
用VerticalAlign=top可以<asp:BoundColumn ItemStyle-Width="20%" HeaderText="名字" DataField="restore_name" />
但下面这句又怎么搞啊?<asp:templatecolumn ItemStyle-Width="70%" ItemStyle-Height="100" HeaderText="回複內容">
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem,"restore_content").ToString()%>
</itemtemplate>
</asp:templatecolumn>
就是<td valign=top>内容</td>,
让这些内容显示在列的最上面,
用VerticalAlign=top可以<asp:BoundColumn ItemStyle-Width="20%" HeaderText="名字" DataField="restore_name" />
但下面这句又怎么搞啊?<asp:templatecolumn ItemStyle-Width="70%" ItemStyle-Height="100" HeaderText="回複內容">
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem,"restore_content").ToString()%>
</itemtemplate>
</asp:templatecolumn>
解决方案 »
- 如何隐藏TABLE内的一行,即:TD
- 【100分请教】sql语句取值并赋给textbox
- 急求,用ajax如何无刷新的更新DataGrid中的一列数据?
- GridView数据绑定的问题,关于主键的存储。
- 寻找关于javascript的学习材料?
- The compiler of ASP.NET?
- farpoint spread 单元格问题
- 模态子窗口数据更新后,如何把刷新父窗口?在线等
- 页面默认提交按钮
- [急]Windows2K Professional装好IIS后还是不能建立ASP.NET项目
- 调查:::做asp.net的朋友你们有双修日吗?????
- 哈哈,我们公司不错,安排本公司的技术精英定期作演讲,主题如下
runat="server"><Columns>
<asp:TemplateColumn ItemStyle-VerticalAlign=Top>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"restore_content").ToString()%>
</ItemTemplate>
</asp:TemplateColumn>
</Columns></asp:DataGrid>