Quantcast
Channel: Gridview header with latin characters ç ã
Viewing all articles
Browse latest Browse all 4

Gridview header with latin characters ç ã

$
0
0

Embarassed Hello everyone

I' m having problems while rendering a gridview by doing:

GridView  listuser = new GridView();
configkey k = new configkey();
MySql.Data.MySqlClient.MySqlConnection cn = new MySql.Data.MySqlClient.MySqlConnection(k.key("constr", ""));


string designacao = "Designação";
strquery = "SELECT  tbl_assuntos.Design_ass AS "+designacao+" FROM tbl_assuntos";


MySqlDataAdapter da = new MySqlDataAdapter(strquery, cn);
DataSet ds = new DataSet();
da.Fill(ds);
listuser.DataSource = ds;
listuser.EmptyDataText = "No records";
listuser.DataBind();
cn.Close();

The gridview's header render's the header "Designação" instead of "Designação"Frown

I've tried to find a way to put HtmlEncode="False" in the code but I don't know how since I'm doing it on the fly

Can anyone help, please!

Thank's in advance


Viewing all articles
Browse latest Browse all 4

Trending Articles