GetValue in chart series

Stimulsoft Reports.NET discussion
Post Reply
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

GetValue in chart series

Post 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.
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

GetValue in chart series

Post by Stéphane »

up
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

GetValue in chart series

Post by Stéphane »

up
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

GetValue in chart series

Post 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.
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

GetValue in chart series

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

GetValue in chart series

Post 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.
Post Reply