internal void PopulateArray(DataTable metaData) { BindToColumns(metaData); ResultColumn column = null; if (metaData.DefaultView.Count > 0) { IEnumerator enumerator = metaData.DefaultView.GetEnumerator(); while (enumerator.MoveNext()) { DataRowView rowView = enumerator.Current as DataRowView; if (plugin != null) { column = this.dbRoot.ClassFactory.CreateResultColumn() as ResultColumn; } else { column = new PluginResultColumn(null); } column.dbRoot = this.dbRoot; column.ResultColumns = this; column.Row = rowView.Row; this._array.Add(column); } } }
internal void PopulateArray(DataTable metaData) { BindToColumns(metaData); ResultColumn column = null; if (metaData.DefaultView.Count > 0) { IEnumerator enumerator = metaData.DefaultView.GetEnumerator(); while (enumerator.MoveNext()) { DataRowView rowView = enumerator.Current as DataRowView; if (plugin != null) column = this.dbRoot.ClassFactory.CreateResultColumn() as ResultColumn; else column = new PluginResultColumn(null); column.dbRoot = this.dbRoot; column.ResultColumns = this; column.Row = rowView.Row; this._array.Add(column); } } }