| | |
| | | private void BtnLayout_ItemClick(object sender, ItemClickEventArgs ee) |
| | | { |
| | | Form parentForm = this.Parent as Form; |
| | | if (parentForm == null) |
| | | parentForm = this.Parent.Parent as Form; |
| | | string _formNamespace = parentForm.GetType().FullName; |
| | | if (parentForm != null) |
| | | { |
| | |
| | | { |
| | | string _gvColName = a["gvColName"].ToString(); |
| | | string _sqlField = a["sqlField"].ToString(); |
| | | string _sqlFieldType = a["sqlFieldType"].ToString(); |
| | | var column = gv1.Columns.Cast<DevExpress.XtraGrid.Columns.GridColumn>() |
| | | .FirstOrDefault(c => c.Name == _gvColName); |
| | | if (column != null) |
| | | { |
| | | column.Tag = _sqlField; |
| | | column.UnboundExpression = _sqlFieldType; |
| | | } |
| | | } |
| | | } |