Page 1 of 1

refresh values and change barheight

Posted: Wed May 26, 2010 3:22 pm
by 9644416
Hi All,

I have a horizontal bar that displays values from a database after I click a button. Everything works fine until the button is clicked the second time because no values are displayed in the horizontal bar.

I wonder if I'm missing something that allow me to display values no matter how many times the buttom is clicked. I tried: tChart.Refresh(); but I don't get good result.

Another problem is that the BarHeight changes depending on the values that are displayed. How can I keep barheight property at the same value. For this I have: horizBar.BarHeightPercent = 3000;

Any suggestion to solve these issues..


Thanks in advance!

Re: refresh values and change barheight

Posted: Wed May 26, 2010 8:14 pm
by 8120110
Who tenaris boy are you?

Re: refresh values and change barheight

Posted: Thu May 27, 2010 11:29 am
by yeray
Hi tenaris,
tenaris wrote:I have a horizontal bar that displays values from a database after I click a button. Everything works fine until the button is clicked the second time because no values are displayed in the horizontal bar.

I wonder if I'm missing something that allow me to display values no matter how many times the buttom is clicked. I tried: tChart.Refresh(); but I don't get good result.
Try with the CheckDataSource method:

Code: Select all

bar1.CheckDataSource();
tenaris wrote:Another problem is that the BarHeight changes depending on the values that are displayed. How can I keep barheight property at the same value. For this I have: horizBar.BarHeightPercent = 3000;
I think that this is the property you are looking for:

Code: Select all

bar1.CustomBarWidth = 20;