public GroupDataExpandRowControl(GroupItemModelBase data, string headerText)
 {
     this.InitializeComponent();
     this.dataItem   = data;
     this.headerText = headerText;
     this.LoadData();
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public GroupDataControl(GroupItemModelBase data)
 {
     this.InitializeComponent();
     this.dataItem = data;
     this.LoadData();
 }