public GroupDataExpandRowControl(GroupItemModelBase data, string headerText) { this.InitializeComponent(); this.dataItem = data; this.headerText = headerText; this.LoadData(); }
private void CreateControlWithData(GroupItemModelBase dataModel, string headerText) { if (dataModel.ExpandRow) { var controlGroup = new GroupDataExpandRowControl(dataModel, headerText); controlGroup.Dock = DockStyle.Top; this.xtraScrollableControl1.Controls.Add(controlGroup); } else { var controlGroup = new GroupDataControl(dataModel); controlGroup.Dock = DockStyle.Top; this.xtraScrollableControl1.Controls.Add(controlGroup); } }
public GroupDataControl(GroupItemModelBase data) { this.InitializeComponent(); this.dataItem = data; this.LoadData(); }