I'm trying to display data from a field of a MySQL
table in a DatePicker
control. The code is as follows:
if (dataGridProdutos.SelectedIndex != -1)
{
DateTime selectedDate;
DataRowView selectedRecord = (DataRowView)dataGridProdutos.SelectedItem;
selectedDate = (DateTime)selectedRecord.Row.ItemArray[2];
dataNascTextBox.Text = selectedDate.Date.ToString("yyyy/MM/dd");
dataNascDatePicker ????
...
}
How can I complete this line with dataNascDatePicker
?