Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am building a web application and want to display data that resides in Excel file, the data displays in Grid View but one of the column data is in Gujarati language for which the font changes in Grid view and data doesn't get displayed as I wish.

Provide me solution.

Thanks.
Ashutosh jain.
Posted
Updated 28-Aug-17 20:12pm
Comments
Henry Minute 1-Jun-10 12:05pm    
Sorry, my bad. Should have been Font = new FontInfo(blah, blah.....)
ashu2188 2-Jun-10 3:03am    
I changed it to FontInfo but I do not understand what you have written in the arguments? is it the font name? if i write the font name in the argument, it shows me the error that :

"The type 'System.Web.UI.WebControls.FontInfo' has no constructors defined."

and it also says the font name that i write in the argument doesn't exist in the current context.

Provide me the solution asap.

Thank You.

I don't know if this is the best way to do what you want but you can do something like:

GridView1.Columns[i].ItemStyle.Font = new FontInfo(yada, thingy, etc);
 
Share this answer
 
v2
Comments
ashu2188 1-Jun-10 11:46am    
I tried the way you have suggested but it gives me error that "The type or namespace "Font" could not be found."

I think i am missing a using directive or assembly reference...

can u suggest me something for this error????
ashu2188 1-Jun-10 12:00pm    
hey i added the reference of System.Drawing and I got the namespace of 'Font' but when i write the font names in arguments, it throws an error :

Cannot implicitly convert type 'System.Drawing.Font' to 'System.Web.UI.WebControls.FontInfo'

What can i do for this?
ashu2188 2-Jun-10 3:04am    
I changed it to FontInfo but I do not understand what you have written in the arguments? is it the font name? if i write the font name in the argument, it shows me the error that :

"The type 'System.Web.UI.WebControls.FontInfo' has no constructors defined."

and it also says the font name that i write in the argument doesn't exist in the current context.

Provide me the solution asap.

Thank You.
ashu2188 2-Jun-10 3:49am    
Problem Solved.
hi can you display fonts in gujarati
 
Share this answer
 
Comments
Richard Deeming 29-Aug-17 12:52pm    
1) This question was asked and answered SEVEN YEARS AGO!

2) What you have posted as a new "solution" is not an attempt to answer the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900