动态DataGridView缺少水平滚动条 [英] Dynamic DataGridView missing horizontal scrollbar

查看:82
本文介绍了动态DataGridView缺少水平滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我为我的应用程序动态创建datagridviews,然后

用30行数据表填充数据,一切似乎都

工作得很好,只有一个例外。我的水平滚动条永远不会出现 -

垂直滚动条没问题。我甚至尝试将

滚动条属性设置为Both,但我仍然只看到垂直

滚动条。


有没有其他方法强制DataGridView的垂直滚动条

出现?????


谢谢,


疯狂

Hi,

I am dynamically creating datagridviews for my application, then
filling them with data from a 30 row datatable, and everything seems to
work great with one exception. My horizontal scrollbar never appears --
no problem with the vertical scrollbar. I even try setting the
scrollbars property to Both, but still I only see the vertical
scrollbar.

Is there any other way to force the DataGridView''s vertical scrollbar
to appear?????

Thanks,

Crazy

推荐答案

尝试选择网格行的最后一个单元格...使用代码...这可能有助于


Vijay


疯猫 <哒****** @ hotmail.com>在消息中写道

news:11 ********************* @ v46g2000cwv.googlegro ups.com ...
Try selecting the last cell of the grid row... using code... that might help

Vijay

"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...


我正在为我的应用程序动态创建datagridviews,然后用30行数据表中的数据填充它们,一切似乎都很好用一个例外。我的水平滚动条永远不会出现 -
垂直滚动条没问题。我甚至尝试将
滚动条属性设置为Both,但我仍然只能看到垂直滚动条。

还有其他方法可以强制使用DataGridView的垂直滚动条
出现?????

谢谢,

疯狂
Hi,

I am dynamically creating datagridviews for my application, then
filling them with data from a 30 row datatable, and everything seems to
work great with one exception. My horizontal scrollbar never appears --
no problem with the vertical scrollbar. I even try setting the
scrollbars property to Both, but still I only see the vertical
scrollbar.

Is there any other way to force the DataGridView''s vertical scrollbar
to appear?????

Thanks,

Crazy





Vijay写道:

Vijay wrote:
尝试选择网格行的最后一个单元格...使用代码...这可能会有所帮助

Vijay

疯猫 <哒****** @ hotmail.com>在消息中写道
新闻:11 ********************* @ v46g2000cwv.googlegro ups.com ...
Try selecting the last cell of the grid row... using code... that might help

Vijay

"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...
你好,

我正在为我的应用程序动态创建datagridviews,然后用30行数据表中的数据填充它们,一切似乎都很好用,只有一个例外。我的水平滚动条永远不会出现 -
垂直滚动条没问题。我甚至尝试将
滚动条属性设置为Both,但我仍然只能看到垂直滚动条。

还有其他方法可以强制使用DataGridView的垂直滚动条
出现?????

谢谢,

疯狂
Hi,

I am dynamically creating datagridviews for my application, then
filling them with data from a 30 row datatable, and everything seems to
work great with one exception. My horizontal scrollbar never appears --
no problem with the vertical scrollbar. I even try setting the
scrollbars property to Both, but still I only see the vertical
scrollbar.

Is there any other way to force the DataGridView''s vertical scrollbar
to appear?????

Thanks,

Crazy




不不行 - 我使用了datagridview.currentrow.cells(INDEX).selected =

true但没有骰子。


还有其他想法吗?


谢谢



Doesn''t work -- I used datagridview.currentrow.cells(INDEX).selected =
true but no dice.

Any other ideas?

Thanks


嗯..好吧..,你确实拥有的不仅仅是列的可见区域,仍然没有

获取滚动条..你使用的是2.0还是1.1?


VJ


Crazy Cat <哒****** @ hotmail.com>在消息中写道

news:11 ********************* @ i40g2000cwc.googlegro ups.com ...
uhm.. ok.., And you do have more than the visible area of columns, still not
getting scrollbars.. are u using 2.0 or 1.1 ?

VJ

"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...

Vijay写道:

Vijay wrote:
尝试选择网格行的最后一个单元格...使用代码...可能
帮助

Vijay

疯猫 <哒****** @ hotmail.com>在消息中写道
新闻:11 ********************* @ v46g2000cwv.googlegro ups.com ...
Try selecting the last cell of the grid row... using code... that might
help

Vijay

"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...
> ;
>
>我正在为我的应用程序动态创建datagridviews,然后
>用30行数据表填充数据,一切似乎都是
>工作很好,有一个例外。我的水平滚动条永远不会出现 -
>垂直滚动条没问题。我甚至尝试设置
>滚动条属性为Both,但我仍然只看到垂直
>滚动条。
>
>有没有其他方法可以强制DataGridView的垂直滚动条
>出现?????
>
>谢谢,
>
>疯狂
>
> Hi,
>
> I am dynamically creating datagridviews for my application, then
> filling them with data from a 30 row datatable, and everything seems to
> work great with one exception. My horizontal scrollbar never appears --
> no problem with the vertical scrollbar. I even try setting the
> scrollbars property to Both, but still I only see the vertical
> scrollbar.
>
> Is there any other way to force the DataGridView''s vertical scrollbar
> to appear?????
>
> Thanks,
>
> Crazy
>



不起作用 - 我使用了datagridview.currentrow.cells(INDEX).selected =
是的但是没有骰子。

任何其他想法?

谢谢



Doesn''t work -- I used datagridview.currentrow.cells(INDEX).selected =
true but no dice.

Any other ideas?

Thanks



这篇关于动态DataGridView缺少水平滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆