G
Guest
Hi:
I'm using the DataGrid control with its AutoGenerateColumns property set to
"true". However, I want to programatically change the HeaderText of one its
colums. Nothing I've tried including putting the code in ItemDataBound seem
to be working. Here's what I tried:
Datagrid1.Columns(7).HeaderText = "Reward " & Application("ShowPoints")
I get an "index out of range" exception when this code runs. There are more
than 8 columns in DataGrid1.
Please help.
Thanks,
Jibey
I'm using the DataGrid control with its AutoGenerateColumns property set to
"true". However, I want to programatically change the HeaderText of one its
colums. Nothing I've tried including putting the code in ItemDataBound seem
to be working. Here's what I tried:
Datagrid1.Columns(7).HeaderText = "Reward " & Application("ShowPoints")
I get an "index out of range" exception when this code runs. There are more
than 8 columns in DataGrid1.
Please help.
Thanks,
Jibey