Page 1 of 1

GetValue in chart series

Posted: Wed May 28, 2008 10:11 am
by Stéphane
Hello,

I try to use the GetValue event in chart series. But it doesn't seem to work (or I miss something)...
For example, in the 'Chart on databand' sample, if I set the GetValue event to :

Code: Select all

MessageBox.Show("Hello world");
nothing is shown...

Any solution?

Cordially,
Kakone.

GetValue in chart series

Posted: Fri May 30, 2008 2:47 am
by Stéphane
up

GetValue in chart series

Posted: Mon Jun 02, 2008 3:43 am
by Stéphane
up

GetValue in chart series

Posted: Mon Jun 02, 2008 9:39 pm
by Edward
We have checked working of that event. All worked properly.

This event fires only when data is get from 'Value'.

Please assign a DataSource property in Chart.

In Value property you have to add an expresion.

Please note, that ListOfValues and ValueDataColumn must be empty, without any data or columns.

Thank you.

GetValue in chart series

Posted: Tue Jun 03, 2008 2:17 am
by Stéphane
I used the ValueDataColumn and I thinked that the GetValue event should fire.
I will use Argument and Value properties...

But, why are there two differents properties: Value and ValueDataColumn? What are the differences between these properties if I use a data column (in one case, the GetValue event will not fire, I know :-))

Cordially,
Kakone.

GetValue in chart series

Posted: Sun Jun 08, 2008 5:15 pm
by Edward
kakone wrote:I used the ValueDataColumn and I thinked that the GetValue event should fire.
In this case GetListofArguments and GetListOfValues events would be fired. GetValue is not fired, it is true.
I will use Argument and Value properties...
Ok, but in this case you should process null values and empty strings in expressions to prevent cast exceptions if null values or empty string is passed to datetime expressions, for example.
But, why are there two differents properties: Value and ValueDataColumn? What are the differences between these properties if I use a data column (in one case, the GetValue event will not fire, I know :-))
There are difference between these two properties. For working with the Value and Argument properties you have to set Chart.DataSource property additionally, for ArgumentDataColumn and ValueDataColumn properties this is not necessary.

Thank you.