or
Private Sub Crosstab1_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles Crosstab1.ItemDataBound
Dim table As Telerik.Reporting.Processing.Table = DirectCast(sender, Telerik.Reporting.Processing.Table)
For Each row As Telerik.Reporting.Processing.TableRow In table.Rows
If row.Index = 3 Then
For colIndex As Integer = 0 To table.Columns.Count - 1
Dim cell As Telerik.Reporting.Processing.ITableCell = row.GetCell(colIndex)
If cell.RowIndex = row.Index AndAlso cell.ColumnIndex = colIndex Then
Dim item As Telerik.Reporting.Processing.ReportItem = cell.Item
If TypeOf (item) Is Processing.TextBox Then
Dim txt As Processing.TextBox = DirectCast(item, Processing.TextBox)
item.Visible = False 'does not work
txt.Visible = False 'does not work
txt.Height = New Telerik.Reporting.Drawing.Unit(0) 'does not work
txt.Style.Color = Color.Red 'it works !
End If
Else
' Do nothing. This is part of a merged table cell
End If
Next
End If
Next
End Sub