'宣言 Public Property SelectedDateFormat As DatePickerFormat
public DatePickerFormat SelectedDateFormat {get; set;}
CType(MyDataGrid.Columns.DataColumns("AdmittanceDate"), DateColumn).SelectedDateFormat = DatePickerFormat.Long
((DateColumn)(MyDataGrid.Columns.DataColumns["AdmittanceDate"])).SelectedDateFormat = DatePickerFormat.Long;