
<chart:RadChart x:Name="chart1" AxisElementBrush="#FFD43636">
<chart:RadChart.SeriesMappings>
<charting:SeriesMapping LegendLabel="Value">
<charting:SeriesMapping.SeriesDefinition>
<charting:LineSeriesDefinition ShowItemLabels="False"></charting:LineSeriesDefinition>
</charting:SeriesMapping.SeriesDefinition>
<charting:ItemMapping FieldName="index" DataPointMember="XValue"></charting:ItemMapping>
<charting:ItemMapping FieldName="value" DataPointMember="YValue"></charting:ItemMapping>
</charting:SeriesMapping>
</chart:RadChart.SeriesMappings>
</chart:RadChart>
Code_behind is:
List<indexsandnumbers> data = new List<indexandnumbers>();
for (int i = 1; i < 999999; i++)
{
index = i;
value = i*1.3;
data.add(new indexsandnumbers(index,value));
chart1.Itemsource = data;
chart1.rebind();
}
However, I can only see the Xvalue increase and there is no Yvalue in the chart1 after I run the application.
The only way to show the line chart is I stop the loop, I can not get the line chart during the loop.
Any helps is appreciated.
Thank you very much.
Hello.
I'm using double click cell event in grid for opening new form.
But when I try auto resize width column (double click on border between column header) or changing sorting mode (double click on column header) this event are executing too.
How I can use this event only for clicking current data row?
Edit:
Excuse me. Posted for WinForms forum...

