在运行时调整gridview列的宽度 [英] Resize gridview column width at runtime
本文介绍了在运行时调整gridview列的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用鼠标拖动来更改gridview的列宽,就像在窗口资源管理器中一样.
i want to change the width of columns of gridview with mouse drag just like in window explorer
推荐答案
如果要更改客户端事件的样式,也使用客户端脚本(例如jquery)之类的东西:
onmouseover ="changeTheGridStyle()"
或在Google中搜索您所需的jquery工具!
if you want to change style with client events, you have too use client scripts, like jquery, something like this:
onmouseover="changeTheGridStyle()"
or search in google for jquery tools for your needs!
如果使用的是 Infragistics Grid ,则每个名为 AllowResize 的列均具有一个属性.将其设置为 true .
快乐编码
:)
Hi,
If you are using Infragistics Grid, then there is one property for each column named AllowResize. Set it to true.
Happy Coding
:)
嗨..
选择您的DataGridView --->转到DataGridView属性(在属性"窗口上)
---> AllowUserToResizeColumns ===>真实
谢谢
快乐编码:)
hi..
Select your DataGridView ---> Go to DataGridView Properties (on Properties window)
--->AllowUserToResizeColumns===>True
Thank you
Happy Coding :)
这篇关于在运行时调整gridview列的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文