We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Event like "QueryCellFormattedText" in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

58185 Mar 20,2007 10:34 AM Mar 21,2007 10:19 AM Windows Forms 2
loading
Tags: Chart
Martin Bonneville
Asked On March 20, 2007 10:34 AM

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

Ramya R [Syncfusion]
Replied On March 21, 2007 01:10 AM

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.

Martin Bonneville
Replied On March 21, 2007 10:19 AM

Hi,

Thanks for the help.

I modified one line...

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

This do the job :-)

Best regards,

Martin

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;