protected override object GetFormattedValue(object value, int rowIndex, ref DataGridViewCellStyle cellStyle, System.ComponentModel.TypeConverter valueTypeConverter, System.ComponentModel.TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context)
 {
     if (value != null)
     {
         DataGridViewAutoFilterTextBoxColumn column = this.OwningColumn as DataGridViewAutoFilterTextBoxColumn;
         if (column != null)
         {
             if (column.DataCellType == DataCellType.CharToDate)
             {
                 return(TryParse.DateToStrByChar(value));
             }
             else if (column.DataCellType == DataCellType.DateToChar && value.GetType().GetUnderlyingType() == typeof(DateTime) && !string.IsNullOrEmpty(column.DataCellTypeFormater))
             {
                 return(TryParse.DateToStr(value, column.DataCellTypeFormater));
             }
         }
     }
     return(base.GetFormattedValue(value, rowIndex, ref cellStyle, valueTypeConverter, formattedValueTypeConverter, context));
 }