Click here to Skip to main content
15,904,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Sandeep Mewara 15-Sep-10 13:21pm    
Can you explain more 'navigate this table'?

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.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900