jpdeslandes 0 Posted April 11, 2013 Report Share Posted April 11, 2013 Using a XValue X axis set as date format I'm trying to draw a CustomGridLine at a particular date. gridLineToday.Value = value; How can I find the correct value to use for the chosen date? Quote Link to post Share on other sites
ExequielA 1 Posted May 23, 2013 Report Share Posted May 23, 2013 Hello, In order to add a customgridline to a particular date, please refer to the code below: CustomGridLine custom = new CustomGridLine();custom.Value= Convert.ToDateTime("2013-06-04").ToOADate();custom.Width= 2;custom.Color= Color.Black;chart1.AxisX.CustomGridLines.Add(custom); The code above willadd a custom gridline to June 04, 2013. I hope this helps. Quote Link to post Share on other sites
jpdeslandes 0 Posted May 23, 2013 Author Report Share Posted May 23, 2013 I had found a solution but this is much better! Thanks! Quote Link to post Share on other sites
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.