public override void DetachEditingControl()
        {
            base.DetachEditingControl();

            FarsiDatePickerCellControl DatePicker = (FarsiDatePickerCellControl)(DataGridView.EditingControl);

            this.Value = DatePicker.GeoDate;
        }
        public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
        {
            base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle);

            FarsiDatePickerCellControl DatePicker = DataGridView.EditingControl as FarsiDatePickerCellControl;

            try
            {
                DatePicker.GeoDate = (DateTime)this.Value;
            }
            catch
            {
            }
        }