public XtraGridControlManager(XtraGridFormManager formManager, XElement xe, GridControl grid, XtraGridControlManager parentGrid) { gFormManager = formManager; gsName = xe.zAttribValue("Name"); gGridDefinition = xe; gGridControl = grid; gParentGrid = parentGrid; Init(); }
public XtraGridControlManager(XtraGridFormManager formManager, string name, GridControl grid, XtraGridControlManager parentGrid) { gFormManager = formManager; gsName = name; gGridControl = grid; gParentGrid = parentGrid; Init(); }
public XtraGridControlManager GetGrid(XElement xe, XtraGridControlManager parentGrid) { //string sName = xe.zAttribValue("Name"); //if (sName == null || sName == "") throw new XtraGridException("error creating grid name is not defined"); //XtraGridControlManager gridManager = new XtraGridControlManager(this, xe, parentGrid); //gGridControls.Add(sName, gridManager); //return gridManager; return GetGrid(xe, null, parentGrid); }
public XtraGridControlManager GetGrid(XElement xe, GridControl grid, XtraGridControlManager parentGrid) { if (xe == null) return null; string sName = xe.zAttribValue("Name"); if (sName == null || sName == "") throw new XtraGridException("error creating grid name is not defined"); if (gGridControls.ContainsKey(sName)) return gGridControls[sName]; XtraGridControlManager gridManager = new XtraGridControlManager(this, xe, grid, parentGrid); gGridControls.Add(sName, gridManager); return gridManager; }
public XtraGridControlManager GetGrid(string name, GridControl grid, XtraGridControlManager parentGrid) { if (name == null || name == "") throw new XtraGridException("error creating grid name is not defined"); if (gGridControls.ContainsKey(name)) return gGridControls[name]; XtraGridControlManager gridManager = new XtraGridControlManager(this, name, grid, parentGrid); gGridControls.Add(name, gridManager); return gridManager; }