使用跟踪栏导航数据表 [英] Using a trackbar to navigate a datatable

查看:77
本文介绍了使用跟踪栏导航数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有一个96行的数据表,每行显示一天中以15分钟为间隔获取的传感器读数.
我想使用跟踪栏浏览此表.

我真的不明白该怎么做.我已经谷歌搜索并进行了尝试,但是还没有解决.

有人可以帮忙吗?

谢谢

Mike

Hi I have a data table of 96 rows each of which displays sensor readings taken at 15 min intervals during the day.
I would like to navigate this table using the trackbar.

I dont really understand how to do this. I have googled and experimented but havn''t workied it out.

could anyone help please?

Thanks

Mike

推荐答案

您是什么意思您想浏览它"?

您是说一次只想显示一行吗?还是只是想拥有一个具有固定大小的屏幕并允许用户滚动?

如果是第二个,只需将桌子放在面板中并设置面板的大小即可.然后,滚动将自动可用.

但是,如果您只想一次显示一行或两行,则可以使用跟踪栏.

标准TrackBar具有一个Scroll事件,该事件在TrackBar移动时触发.挂钩该事件并根据TrackBar中的当前值填写表格.
What do you mean "you would like to navigate it"?

Are you saying that you only want to show one row at a time? Or just that you want to have a screen with a set size and allow the user to scroll?

It if''s the second, just put the table in a panel and set the panel''s size. Then, scrolling will automatically be available.

If, however, you''re only wanting to show one row or a couple at a time, then the trackbar would be the way to go.

The standard TrackBar has a Scroll event that fires when the TrackBar moves. Hook that event and fill in the table based on the current value in the TrackBar.


谢谢

我只想一次滚动一张表,在后台对其做一些工作,然后显示结果.

我的问题是将轨迹栏链接到表格.

我假设我可以通过数据绑定链接到它?

也许不是吗?

迈克
Thanks

I only want to scroll 1 row at a time through a table, do some work on it in the background and then display the results.

My problem is linking the trackbar to the Table.

I am assuming that i can link to it through databindings ?

maybe not?

mike


这篇关于使用跟踪栏导航数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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