0
我datagridview的简写字符串的其余部分在小区太小,无法包含字符串。
我该如何制作水平滚动条才能看到内容?
datagridview停靠(填充)到表单,并具有单个列标题和填充属性。
我datagridview的简写字符串的其余部分在小区太小,无法包含字符串。
我该如何制作水平滚动条才能看到内容?
datagridview停靠(填充)到表单,并具有单个列标题和填充属性。
<asp:TemplateField HeaderText="Body">
<ItemTemplate>
<div style="overflow:auto; height: 100px;">
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Body")%>'></asp:Label>
</div>
</ItemTemplate>
</asp:TemplateField>
在你的gridview中使用这种方式来设置溢出数据。这显示滚动条。
对不起,它是Winforms,但如果在Winforms中绝对没有办法,我会将此标记为答案并使用WPF控件 – l46kok 2012-08-17 09:07:23
好吧,我会试着弄清楚你需要什么 – 2012-08-17 10:28:32