I am using Dundas Charts and depending on what is returned from the database it checks to see if a data point exists.
so what is the C# equivalent of the following vb code.. in C# I need to test if Chart1.Series(0).Points(6) exists or not. If it does continue, if not ..ignore
right now I have this
Chart1.Series.Points["Exploded"] = "True";
but I am getting
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
I know it is out of range but I need to check for it because sometimes it is not out of range.
this code works in VB.
If Not Chart1.Series(0).Points(6).Empty Then
Chart1.Series(0).Points(6)("Exploded") = "True"
any help is greatly appreciated.