Category / Section
How to bind a dataset with date values in Chart?
1 min read
After creating a table with Datetime column, it must be bind to the dataset using ChartDataBindModel class.
C#
ChartDataBindModel model = new ChartDataBindModel(this.prodDs1,"Products");
model.XName = "ExpiresDate";
VB
Dim model As New ChartDataBindModel(Me.prodDs1, "Products")
model.XName = "ExpiresDate"
Where prodDs1 is the dataset, Products is the table name and XName is the Datetime column