jpdeslandes 0 Report post 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 Share this post Link to post Share on other sites
ExequielA 1 Report post 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 Share this post Link to post Share on other sites
jpdeslandes 0 Report post Posted May 23, 2013 I had found a solution but this is much better! Thanks! Quote Share this post Link to post Share on other sites