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

J

John Blair

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.
 
E

Eliyahu Goldin

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

Eliyahu
 
J

John Blair

Thanks again!

Eliyahu Goldin said:
The only way is to handle ItemCreated event. Then you can catch headers as
they get created and change the text.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top