I have a DataGridview in which there is a DataTimePickerColumn, and it’s DateTimePickerCell contain checkstate. How do I get the checkstate value after editing the checkstate?
I have a DataGridview in which there is a DataTimePickerColumn , and it’s DateTimePickerCell
Share
Create a control inheriting from DateTimePicker and handle the DTN_DATETIMECHANGE notification. Then handle your DataGridView’s EditingControlShowing event to add a handler for your DateTimePicker’s new CheckedChanged event, or even you can create your own DataGridViewColumn and Cell type with DateTimePickerEx as EditingControl:
Handle the DateTimePickerEx.CheckedChanged on DataGridView.EditingControlShowing: