Dovberman
asked on
How to refresh the ASP: Chart when the datasource for the chart series is modified.
This should be simple, but I am stuck.
I have a MS NET chart control whose series is based on a datasource.
I am resetting the datasource parameters.
then I would like the chart to redraw based on the datasource.
conStockSelect.Open();
grdExceptions.SelectedValu e.ToString ();
cmd.Parameters.Clear();
cmd.Parameters.Add("@FromD ate", SqlDbType.DateTime).Value = strFromDate;
cmd.Parameters.Add("@ToDat e", SqlDbType.DateTime).Value = strToDate;
cmd.Parameters.Add("@Symbo lID", SqlDbType.Int).Value = grdExceptions.SelectedValu e.ToString ();
dscExceptionDetail.DataBin d();
// the chart does not change.
//dscExceptionDetail is the datasource for Series1 of Chart2
//Refresh the chart based on the new cmd parameter values
// ????
I have a MS NET chart control whose series is based on a datasource.
I am resetting the datasource parameters.
then I would like the chart to redraw based on the datasource.
conStockSelect.Open();
grdExceptions.SelectedValu
cmd.Parameters.Clear();
cmd.Parameters.Add("@FromD
cmd.Parameters.Add("@ToDat
cmd.Parameters.Add("@Symbo
dscExceptionDetail.DataBin
// the chart does not change.
//dscExceptionDetail is the datasource for Series1 of Chart2
//Refresh the chart based on the new cmd parameter values
// ????
Try to call the Refresh() of the Chart Control
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.