public void Set_GridColumn(WebGirdColumn info) { this.cboField.Value = info.FieldName; this.txtCaption.Text = info.Caption; this.txtFormatStr.Text = info.DisplayF; this.cboAlign.Value = info.Align.ToString(); this.txtVisibleIndex.Text = info.VisibleIndex.ToString(); this.txtWidth.Text = info.Width.ToString(); }
public void Set_GridColumn(WebGirdColumn info) { this.cboField.Value = info.FieldName; this.txtCaption.Text = info.Caption; this.txtFormatStr.Text = info.DisplayF; this.cboAlign.Value = info.Align.ToString(); this.txtVisibleIndex.Text = info.VisibleIndex.ToString(); this.txtWidth.Text = info.Width.ToString(); }
public WebGirdColumn Get_GridColumn() { try { var ret = new WebGirdColumn { Name = this.ID, FieldName = Lib.NTE(this.cboField.Value), Caption = this.txtCaption.Text, DisplayF = this.txtFormatStr.Text, Align = Lib.ToEnum <System.Web.UI.WebControls.HorizontalAlign>(this.cboAlign.Value), VisibleIndex = int.Parse(this.txtVisibleIndex.Text), Width = int.Parse(this.txtWidth.Text) }; return(ret); } catch { } return(null); }
public WebGirdColumn Get_GridColumn() { try { var ret = new WebGirdColumn { Name = this.ID, FieldName = Lib.NTE(this.cboField.Value), Caption = this.txtCaption.Text, DisplayF = this.txtFormatStr.Text, Align = Lib.ToEnum<System.Web.UI.WebControls.HorizontalAlign>(this.cboAlign.Value), VisibleIndex = int.Parse(this.txtVisibleIndex.Text), Width = int.Parse(this.txtWidth.Text) }; return ret; } catch { } return null; }