By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

How do i: Change the header text in a datagrid that is databound?

P: n/a
Hi,

I have tried aliasing columns in the SELECT statement - they get ignored.
I have tried accessing the .columns(0).headertext - but as the grid is
databound that column collection does not exist.

Any help appreciated. Thanks.
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The only way is to handle ItemCreated event. Then you can catch headers as
they get created and change the text.

Eliyahu

"John Blair" <jo********@hotmail.com> wrote in message
news:_U***************@newsfe5-gui.ntli.net...
Hi,

I have tried aliasing columns in the SELECT statement - they get ignored.
I have tried accessing the .columns(0).headertext - but as the grid is
databound that column collection does not exist.

Any help appreciated. Thanks.

Nov 19 '05 #2

P: n/a
Thanks again!

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Ou****************@TK2MSFTNGP09.phx.gbl...
The only way is to handle ItemCreated event. Then you can catch headers as
they get created and change the text.

Eliyahu

"John Blair" <jo********@hotmail.com> wrote in message
news:_U***************@newsfe5-gui.ntli.net...
Hi,

I have tried aliasing columns in the SELECT statement - they get ignored.
I have tried accessing the .columns(0).headertext - but as the grid is
databound that column collection does not exist.

Any help appreciated. Thanks.


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.