Markus Posted March 10, 2008 Report Share Posted March 10, 2008 Hey, i have a small problem in this code: myPie = (Pie) _chart.GalleryAttributes; if (_chart.Gallery != Gallery.Doughnut) { cbExplodeMode.DataSource = System.Enum.GetValues(typeof(ExplodingMode)); cbExplodeMode.SelectedItem = myPie.ExplodingMode; } else cbExplodeMode.Enabled = false; cbFontStyles.DataSource = _Styles; nupSliceseparation.Value = myPie.SliceSeparation; after this part the _chart.Gallery isn't no longer a Doughnut or Pie or s.th. like that, but now it's 29482, and i don't know why. When i comment cbExplodeMode.DataSource = System.Enum.GetValues(typeof(ExplodingMode)); out, everything works fine. Can someone tell me why? Quote Link to comment Share on other sites More sharing options...
Frank Posted March 10, 2008 Report Share Posted March 10, 2008 I'm guessing cbExplodeMode is a combobox. Maybe you have some code in an event of the combobox that is fired as a consequence of setting the combobox datasource and that code changes the chart gallery. A Gallery of 29482 looks like an external gallery type (e.g. An extension gallery). Are you using any extensions? Quote Link to comment Share on other sites More sharing options...
Markus Posted March 10, 2008 Author Report Share Posted March 10, 2008 doh.. yes, your completely right! thank you for your response. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.