OVH Cloud OVH Cloud

Gridview HeaderText and Localization

1 réponse
Avatar
Grégoire Poncet
Hi,

Due to a user selection (dropdownlist) of the language I have to use the
Explicit localization. As I am using GridView controls I would like to be
able to bind the column header (HeaderText Property) to an entry in .resx
file.... It seems that I can't do it like: Headertext= "<%$
Resources:WebTrans, Column1Header"%>
Any Idea ?

Thanx

Greg P.

1 réponse

Avatar
Grégoire Poncet
Found it..... it was a question of quotes....
BAD: Headertext="<%$ Resources:WebTrans, Column1Header%>"
GOOD: Headertext='<%$ Resources:WebTrans, Column1Header%>'

"Grégoire Poncet" wrote in message
news:%
Hi,

Due to a user selection (dropdownlist) of the language I have to use the
Explicit localization. As I am using GridView controls I would like to be
able to bind the column header (HeaderText Property) to an entry in .resx
file.... It seems that I can't do it like: Headertext= "<%$
Resources:WebTrans, Column1Header"%>
Any Idea ?

Thanx

Greg P.