G
Guest
Ok so i want to change the column headings - so you
set .HeaderRow.Cells(i).Text to the text required right?
yes that works
but if sorting is enabled it does not cos the button is changed to a text
field.
Why?
What is gained by this?
you have to :-
DirectCast(GridVewName.HeaderRow.Cells(i).Controls(0), LinkButton).Text =
textrequired
And you have to work out that it is a LinkButton cos the debugger says it
is a DataControlFieldLinkButton, which is undocumented and you can not cast
to...
What is gained by making available a control that is undocumented and that
you can not use?
G*D I hate this control
Guy
set .HeaderRow.Cells(i).Text to the text required right?
yes that works
but if sorting is enabled it does not cos the button is changed to a text
field.
Why?
What is gained by this?
you have to :-
DirectCast(GridVewName.HeaderRow.Cells(i).Controls(0), LinkButton).Text =
textrequired
And you have to work out that it is a LinkButton cos the debugger says it
is a DataControlFieldLinkButton, which is undocumented and you can not cast
to...
What is gained by making available a control that is undocumented and that
you can not use?
G*D I hate this control
Guy