First of all I recommend you to use this syntax when setting Custom Properties:
Chart.Series["MySeries"]["Exploded"] = "true"; |
It makes sure that you do not have duplicate custom properties set. We will make adjustments to the Pie chart sample that suggests just adding string to the
CustomProperties.
You are using data binding and my guess is that all your data points are re-created later after you changed the exploded slice. Try calling
Chart.DataBind() method before setting the Exploded slice. This method will force the binding and population of the new data into the series at the moment of the call.
Alex.