I need to be able to occasionally span a Text value across 3 NumericColumns when those columns are not relevant. I have attached a screenshot where I have cleared the appropriate columns and added the Text info. Now I need to know how to span the text from Column 1 into Column 2 and 3 without affecting the column headers or the data in other rows.
Here are a few snippets of my code to show what I'm working with:
CODE-BEHIND (ItemDataBound)
FRONT-END
Here are a few snippets of my code to show what I'm working with:
CODE-BEHIND (ItemDataBound)
If
Not
IsDBNull(dataRow(
"span_data"
))
Then
For
Each
col
As
GridColumn
In
TryCast(sender, RadGrid).MasterTableView.RenderColumns
Select
Case
col.UniqueName
Case
"column1"
col.ItemStyle.HorizontalAlign = HorizontalAlign.Leftrow(
"column1_data"
).Text =
CStr
(dataRow(
"span_data"
))
Case
"column2"
row(
"column2_data"
).Text =
" "
Case
"column3"
row(
"column3_data"
).Text =
" "
End
Select
Next
End
If
FRONT-END
<
telerik:GridNumericColumn
HeaderText="Column 1" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column1" UniqueName="column1" SortExpression="column1" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />
<
telerik:GridNumericColumn
HeaderText="Column 2" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column2" UniqueName="column2" SortExpression="column2" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />
<
telerik:GridNumericColumn
HeaderText="Column 3" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column3" UniqueName="column3" SortExpression="column3" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />