user1479273
user1479273

Reputation: 205

Converting ü to ü

I am working with asp.net project and i am using datagridview.. so i am filling datagridview and when i read grid view, then some character is changing from "ü" to "ü"

i am filling datagridview like below :

DataTable dt = new DataTable();
....
..
.

datagridview.DataSource = dt;
datagridview.Databind();

when i bind to datagridview..

datagridview.rows[1][4] is being "Türkiye"

but when i read this value for setting to some textbox.

txtXXX.Text = datagridview.rows[1][4].Text;

i am getting this value = "Türkiye" ....

soo my question is : how to i convert "ü" to "ü" ?

Upvotes: 1

Views: 905

Answers (1)

Nabakamal Das
Nabakamal Das

Reputation: 129

Hope this helps :

System.Net.WebUtility.HtmlDecode(datagridview.rows[1][4].Text);

Upvotes: 5

Related Questions