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!
refresh values and change barheight
Re: refresh values and change barheight
Who tenaris boy are you?
Re: refresh values and change barheight
Hi tenaris,
Try with the CheckDataSource method: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.
Code: Select all
bar1.CheckDataSource();
I think that this is the property you are looking for: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;
Code: Select all
bar1.CustomBarWidth = 20;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |