Event like "QueryCellFormattedText" in GridDataBoundGrid

Hi,

I have a chart with a serie bound on a data source.

I need to do some operation on the Y value before the chart display it... the value is 0.0000001... I need to display 100 ( * 1000000000 ).

With the GridDataBoundGrid, I used the event "QueryCellFormattedText" and "SaveCellFormattedText".

What I need to do with the chart ?

Best regards,

Martin

2 Replies

RR Ramya R Syncfusion Team March 21, 2007 05:10 AM UTC

Hi Martin,

Thank You for your interest in Syncfusion Products.

If your intention is to display Y- Axis value in a 100 ( * 1000000000 ) format then it can be done by using the ChartFormatAxisLabel event as shown in the code snippet below,


private void chartControl1_ChartFormatAxisLabel(object sender, Syncfusion.Windows.Forms.Chart.ChartFormatAxisLabelEventArgs e)
{
if(e.AxisOrientation==ChartOrientation.Vertical && e.IsAxisPrimary==true)
{
//Here e.Value.ToString contains the YValue of the SeriesPoint given while adding points to series. For example if a points are added to series as series.Points.Add(1,2) then the "2 " here is the e.Value. Any other string can also be given.
e.Label=e.Value.ToString()+"(* 1000000000)";
e.Handled = true;
}

}

Let me know whether this helps you.

Thanks & Regards,
Ramya.


MB Martin Bonneville March 21, 2007 02:19 PM UTC

Hi,

Thanks for the help.

I modified one line...

e.Label= ( e.Value * 1000000000).ToString();

This do the job :-)

Best regards,

Martin

Loader.
Up arrow icon