/// <summary> /// Converts a ResultTable reference into /// an Html Table /// </summary> /// <param name="table">ResultTable reference</param> /// <returns>Html Table</returns> public string HtmlTable(ResultTable table, bool includeHeaders = true) { StringBuilder grid = new StringBuilder(@"<table class='grid-table'>"); List <object[]> rows = table.ToGrid(); if (includeHeaders) { rows.RemoveAt(0); grid.Append(Headers(table.Columns)); } grid.Append(Body(rows)) .Append(@"</table>"); return(grid.ToString()); }