public DataField(DataField field) :
     this()
 {
     this._isMirror         = true;
     this._name             = (field.Name + "_Mirror");
     this._type             = field.Type;
     this._len              = field.Len;
     this._label            = field.Label;
     this._readOnly         = true;
     this._allowNulls       = field.AllowNulls;
     this._allowQBE         = field.AllowQBE;
     this._allowSorting     = field.AllowSorting;
     this._allowLEV         = field.AllowLEV;
     this._dataFormatString = field.DataFormatString;
     this._aggregate        = field.Aggregate;
     if (!(this._dataFormatString.Contains("{")))
     {
         this._dataFormatString = string.Format("{{0:{0}}}", this._dataFormatString);
     }
     field._aliasName       = this._name;
     this.FormatOnClient    = false;
     field.FormatOnClient   = true;
     field.DataFormatString = string.Empty;
     this._hidden           = true;
 }
Exemple #2
0
 public DataField(DataField field)
     : this()
 {
     this._isMirror = true;
     this._name = (field.Name + "_Mirror");
     this._type = field.Type;
     this._len = field.Len;
     this._label = field.Label;
     this._readOnly = true;
     this._allowNulls = field.AllowNulls;
     this._allowQBE = field.AllowQBE;
     this._allowSorting = field.AllowSorting;
     this._allowLEV = field.AllowLEV;
     this._dataFormatString = field.DataFormatString;
     this._aggregate = field.Aggregate;
     if (!(this._dataFormatString.Contains("{")))
         this._dataFormatString = String.Format("{{0:{0}}}", this._dataFormatString);
     field._aliasName = this._name;
     this.FormatOnClient = false;
     field.FormatOnClient = true;
     field.DataFormatString = String.Empty;
     this._hidden = true;
 }