c# - How to get date values form grid's cell to date time picker control in new form -


How can we make a grid sale price near datetimepicker ? I have a grid with a column, in which one column store date value (YYYY-MM-DD) format. When I click on the Edit button, the selected row values ​​must be passed to the new form and the date value needs to be set to date picture control Is it possible , if so, how?

This is what I need:

  DateTime dtBookPublishDate = DateTime Perce (DGVBooks Details) Current Roles Seals [5] Value. ToStrin ()); MyBookInformation.dtpBookPublishDateInfo.Value = DateTime.Parse (dtBookPublishDate.ToShortDateString ());   

Where, frmBookInformation is a sub form and currently main form on Im.

Comments