Binding at design time Compact Framework
Posted: Thu Jun 20, 2013 12:29 pm
Hi
I am trying to bind a DataTable to a pie chart, but nothing is drawn what am I missing? Below is a snippet of the code.
Private Sub DrawPieChart(ByVal dt As DataTable)
Dim chart = GetChartObject()
_reportContent.Controls.Clear()
_reportContent.Controls.Add(chart)
Dim pieSeries As New Steema.TeeChart.Styles.Pie(chart.Chart)
pieSeries.YValues.DataMember = dt.Columns("PeriodUsage").ToString
pieSeries.LabelMember = dt.Columns("DeviceEndpointId").ToString
pieSeries.DataSource = dt
'pieSeries.CheckDataSource()
End Sub
I am trying to bind a DataTable to a pie chart, but nothing is drawn what am I missing? Below is a snippet of the code.
Private Sub DrawPieChart(ByVal dt As DataTable)
Dim chart = GetChartObject()
_reportContent.Controls.Clear()
_reportContent.Controls.Add(chart)
Dim pieSeries As New Steema.TeeChart.Styles.Pie(chart.Chart)
pieSeries.YValues.DataMember = dt.Columns("PeriodUsage").ToString
pieSeries.LabelMember = dt.Columns("DeviceEndpointId").ToString
pieSeries.DataSource = dt
'pieSeries.CheckDataSource()
End Sub