I am calling a stored procedure where I pass variable for number of days to report on.
Hello Tom,
Thank you for contacting Infragistics. Please have a look at the sample attached below. Binding to the DataTable is all you really need. It's possible this is just a timing issue. Try and incorporate the dummy data from my sample into your application and see if it works.
UltraChartLineChart.zip
Does the number of columns have impact. My stored procedure may have up to 8 columns. first being Date and the remaining columns depends on how many users worked on things during those days. A row in dataTable may be
"11/11/2019", "33.5","25.7", "68","42"
And the columns headers would be "Date", "Bill","Jack",'Sally","Sam"
and the row count would be whatever the variable to passed to Sproc (number of days)
What does a timing thing mean. That the chart is being displayed before data is returned?
I don't think a remote meeting is going to help in resolving the issue. Please modify the sample or provide a new one to replicate the issue and send it back. Thank you. You can refer to our online documentation for more details:https://www.infragistics.com/help/winforms/chart-adding-chart-to-a-form
Michael, This here little bit of code is not working. I have simplified everything and still get same result of call databind after setting datasource.
What doesn't work? I used your code in my original sample and got two lines, hence from the two rows you added. Please see attached. If you swap rows with columns you should see four lines for each name.
UltraChartLineChart (2).zip
Just giving you a thank you for your time. I found the issue is line
InitializeComponent()
Good for C# but caused VB.net not to be able to display chart
Your welcome, yes InitializeComponent() is not applicable in a VB app.