Esempio n. 1
0
 /// <summary>
 /// Populates ddColumns with all columns not already spoken for in generated report
 /// </summary>
 protected void BuildOptionalColumnDropdown()
 {
     ddColumns.Items.Add("Add New Field...");
     foreach (var column in ColumnFactory.GetColumnFactory().GetColumnsNot(_vwbQuery.ColumnKeysInOrder))
     {
         ddColumns.Items.Add(new ListItem(column.GetHeader(), column.Key()));
     }
 }
Esempio n. 2
0
 protected void AddColumn(object sender, EventArgs e)
 {
     if (ColumnFactory.GetColumnFactory().GetColumn(ddColumns.SelectedValue) == null)
     {
         return;
     }
     _vwbQuery.ColumnKeysInOrder.Add(ddColumns.SelectedValue);
     RedirectTo(_vwbQuery);
 }