Page 1 of 1

Howto walk through value List

Posted: Sat Apr 06, 2013 3:54 pm
by 16060254
I try to walk trough an ValueList an plott the Values from each value ​​column line per line in an Grid, but the code delivers only one const. value and not all values in the value column?

Code: Select all

    With frm.TChart1.Series.Item(t).ValuesLists
                    For s = 0 To .Count - 1
                        ActiveCell.Cells.Item(zeile, spalte).Value = .Item(s).Name & "_Value_" & frm.TChart1.Series.Item(t).TitleOrName
                            For zeile = 2 To .Item(s).Count
                                ActiveCell.Cells.Item(zeile, spalte).Value = .Item(s).Value
                            Next
                        spalte = spalte + 1
                        zeile = 1
                    Next
  End With
What is wrong?


Thanks and Best Regards

Re: Howto walk through value List

Posted: Mon Apr 08, 2013 10:30 am
by 10050769
Hello Uta,
I suggest you two easy way, allow you to achieve as you want.
1.- See the sample demo, All Features\Welcome !\Components\Chart Grid where the grid is populate automatically.
2.- You can taking a look in next lines of code that works in correct way here:

Code: Select all

private Sub InitializeChart()
Dim series1 As New Line(tChart1.Chart)
series1.FillSampleValues()
For i As Integer = 0 To series1.ValuesLists.Count - 1
	Dim v As Steema.TeeChart.Styles.ValueList = series1.ValuesLists(i)
	For j As Integer = 0 To v.Count - 1
		listBox1.Items.Add(v(j))
  Next
Next
End Sub
If my suggestions don't help you, I would be very grateful if you can try to arrange for us a simple project because we can try to reproduce your problem exactly here and try to provide you a good solution for you.

Thanks,