I am having some trouble setting the header text of my columns.
I am getting an error on
Here is the error:
Failed accessing GridColumn by index. Please verify that you have specified the structure of RadGrid correctly.
I am getting an error on
.MasterTableView.Columns(i).HeaderText
= ... (the other side of the equation works fine).Here is the error:
Failed accessing GridColumn by index. Please verify that you have specified the structure of RadGrid correctly.
Protected
Overridable
Sub
FormatGrid()
Try
With
mGridEx
.DataSource = mDs
If
Not
IsPostBack()
Then
.Font.Name =
"Verdana"
.Font.Size =
New
WebControls.FontUnit(
"8.5pt"
)
End
If
.DataBind()
For
i
As
Integer
= 0
To
mDs.Tables(mTableName).Columns().Count - 1
.MasterTableView.Columns(i).HeaderText = mDs.Tables(mTableName).Columns(i).Caption
Next
End
With
Catch
ex
As
System.NullReferenceException
Catch
ex
As
Exception
Dim
error1
As
String
= ex.ToString()
End
Try
End
Sub