Jump to content
Software FX Community

Series starting with null value


kazuhiro

Recommended Posts

Hi, 

I get NullReferenceException when I bind an array of nullable intergers which starting with a null value. For instance:

 myChart.DataSourceSettings.DataSource = new ListProvider(new int?[] { null, 1, 2, 3, 4 }); // NullReferenceException thrown. 

Is there any way to walk around this problem? I do want that null value as a placeholder.

 Regards,Kazuhiro 

Link to comment
Share on other sites

The ListProvider does not support nullable value type at this point.

You will need to pass an array of doubles like this:

myChart.DataSourceSettings.DataSource = new ListProvider(new double[] { Chart.Hidden, 1, 2, 3, 4 });

Or you can use the Data API to pass the values one by one.

We will fix issue this in the next Service Pack.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...