/// <summary> /// Creates a row that includes a label and another row for the value of a TableWide field /// </summary> /// <param name="field">FormField that will be included in these rows</param> protected void CreateTableWideRow(FormField field, IGrid grid) { //add a full row for the caption grid.RowCount++; grid.SetContent(grid.RowCount - 1, 0, field.CaptionControl); grid.SetColumnSpan(grid.ColumnCount, field.CaptionControl); //and another full row for the value grid.RowCount++; grid.SetContent(grid.RowCount - 1, 0, field.ValueControl); grid.SetColumnSpan(grid.ColumnCount, field.ValueControl); }