public static void SetButtonsTable(this HtmlTable table, String unit = null) { table.SetTableStyleBasic(); for (int i = 0; i < table.Rows.Count; i++) { for (int j = 1; j < table.Rows[i].Cells.Count; j++) { table.Rows[i].Cells[j].Style.Add(HtmlTextWriterStyle.PaddingLeft, (unit == null ? "5" : unit)); } } }
public static void SetTableTitlePanelStyle(this HtmlTable table, string postfix) { // table must have a row and a cell. table.SetTableStyleBasic(); table.Rows[0].Cells[0].SetGdvTitlePanelCellStyle(postfix); }
public static void SetTableStyle(this HtmlTable table, string postfix) { table.SetTableStyleBasic(); table.Attributes.Add("class", string.Format("dxgvTable_{0}", postfix)); }