Paging

  • Thread starter Thread starter juli jul
  • Start date Start date
J

juli jul

I want to do I paging in a scroll bar. I mean to provide each scroll a
new data (dynamiclly) in to the chart.
How it can be done? Thanks a lot!
 
Hi,

I guess that you could handle the scroll event and at that point rebind the
chart control.


If this does not solve your problem give more details about it.


Cheers,
 
Hi Juli,

You can do it on the ScrollBar Scroll event adding as many values as your
ScrollIncrement (see my previous post). Also add the values at Form_Load so
that the series first page is populated with data when running the
application.

private void hScrollBar1_Scroll(object sender,
System.Windows.Forms.ScrollEventArgs e)
{

tChart1.Axes.Bottom.SetMinMax(0+hScrollBar1.Value,ScrollIncrement+hScrollBar
1.Value);

Random Value = new Random();

for(int i=0; i<ScrollIncrement; i++)
line2.Add(Value.Next(100));
}

Regards,
Narcís.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top