void CreateDetailsSection(ReportWizardContext context){
			var pushModelContext = (PushModelContext)context.PushModelContext;
			foreach (var element in pushModelContext.Items) {
				var dataItem = new BaseDataItem(){
					Name = element.ColumnName,
					Text = element.ColumnName,
					ColumnName = element.ColumnName,
					DataType = element.DataTypeName
				};
				ReportModel.DetailSection.Items.Add(dataItem);
			}
			AdjustItems(ReportModel.DetailSection.Items,startLocation);
		}
        public void DataItemWithNoColumnNameHasErrorMessageInDbValue()
        {
            var baseRow = new BaseRowItem();
            var dataItem = new BaseDataItem() {

            };

            baseRow.Items.Add(dataItem);

            var row = new System.Collections.Generic.List<IPrintableObject>();
            row.Add(baseRow);
            var reportSettings = new ReportSettings();
            var collectionSource = new CollectionDataSource (list,reportSettings);
            collectionSource.Bind();
            foreach (var element in collectionSource.SortedList) {
                collectionSource.Fill(row,element);
                var r = (BaseRowItem)row[0];
                foreach (var result in r.Items) {
                    Assert.That(((BaseDataItem)result).DBValue.StartsWith("Missing"),Is.EqualTo(true));
                }
            }
        }
        public void RowContainsRowAndItem()
        {
            var row = new System.Collections.Generic.List<IPrintableObject>();
                var gItem = 	new BaseDataItem(){
                    ColumnName = "GroupItem"
                };
            row.Add(gItem);

            var baseRow = new BaseRowItem();

            var ric = new System.Collections.Generic.List<IPrintableObject>(){
                new BaseDataItem(){
                    ColumnName = "Lastname"

                },
                new BaseDataItem(){
                    ColumnName = "Firstname"
                }
            };
            baseRow.Items.AddRange(ric);
            row.Add(baseRow);
            var rs = new ReportSettings();
            var collectionSource = new CollectionDataSource (list,rs);
            collectionSource.Bind();
            int i = 0;
            foreach (var element in collectionSource.SortedList) {
                collectionSource.Fill(row,element);
                var res = (BaseDataItem)row.Find(c => ((BaseDataItem)c).ColumnName == "GroupItem");
                Assert.That(res.DBValue,Is.Not.Empty);
                i ++;
            }
            Assert.That(i,Is.EqualTo(collectionSource.Count));
        }
 static List<IPrintableObject> CreateItems(PushModelContext context)
 {
     var list = new List<IPrintableObject>();
     foreach (var element in context.Items) {
         var dataItem = new BaseDataItem(){
             Name = element.ColumnName,
             Text = element.ColumnName,
             ColumnName = element.ColumnName,
             DataType = element.DataTypeName
         };
         list.Add(dataItem);
     }
     AdjustItems(list,startLocation);
     return list;
 }