Hello,
I'm creating dynamic radgrid with dynamic columns names. The names all come from the database and can be either in English or in French. When a column's name contain a french character such as é à è ê ç... or if it contain ' or - a space is automatically added after the character witch odd result such as:
"Remplaç
ant"
or
"Anné
e"
or
"sous
-
code"
I tried to prevent text wraping this way:
grid.HeaderStyle.Wrap = false;
This way I don't get odd wrapping, but I still get space after those character, so it now looks like:
"Remplaç ant"
"Anné e"
"sous- code"
It's a little bit better but far from acceptable. The data binding is done this way (table been a DataTable):
grid.DataSource = table;
I tried to use Server.HtmlEncode() to make sure that the string is in the right format, but no luck... Since I'm using a DataTable, I don't think I can use TextBlock. Any idea?
Thanks,
LP
I'm creating dynamic radgrid with dynamic columns names. The names all come from the database and can be either in English or in French. When a column's name contain a french character such as é à è ê ç... or if it contain ' or - a space is automatically added after the character witch odd result such as:
"Remplaç
ant"
or
"Anné
e"
or
"sous
-
code"
I tried to prevent text wraping this way:
grid.HeaderStyle.Wrap = false;
This way I don't get odd wrapping, but I still get space after those character, so it now looks like:
"Remplaç ant"
"Anné e"
"sous- code"
It's a little bit better but far from acceptable. The data binding is done this way (table been a DataTable):
grid.DataSource = table;
I tried to use Server.HtmlEncode() to make sure that the string is in the right format, but no luck... Since I'm using a DataTable, I don't think I can use TextBlock. Any idea?
Thanks,
LP