Is it possible to have a cell stretch across multiple columns? Basically what you would do with "colspan=x" in an HTML table.
I have a table with 5 columns, I am adding rows programatically and every other row I want to have all the cells combined. I can get rid of the borders to give the illusion, but the text still gets crammed into one cell. So either I need a way to make one cell stretch across the 5 columns, or to have the text go across multiple cells. Here is the void which adds the text to the cells:
I have a table with 5 columns, I am adding rows programatically and every other row I want to have all the cells combined. I can get rid of the borders to give the illusion, but the text still gets crammed into one cell. So either I need a way to make one cell stretch across the 5 columns, or to have the text go across multiple cells. Here is the void which adds the text to the cells:
private
void
AddCellDataSpan(TableCell cell,
string
spanData, Color cellBackgroundColor, Color textColor, Telerik.Windows.Documents.Layout.RadTextAlignment cellTextAligment)
{
var paragraph =
new
Telerik.Windows.Documents.Model.Paragraph();
paragraph.TextAlignment = cellTextAligment;
cell.Blocks.Add(paragraph);
cell.Background = cellBackgroundColor;
var span =
new
Telerik.Windows.Documents.Model.Span();
span.Text = spanData;
span.ForeColor = textColor;
span.FontSize = 9;
paragraph.Inlines.Add(span);
}