Click here to Skip to main content
15,916,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i change font style for particular field??????
how do i change font in gridview,There r 2 field in my datatable 1 is item and 2 is items name in hindi,i just wnt change in my item's name column english to hindi only for one column in visual basic.net...please provide me solution in this stuff ... and not for asp.net pls suggest me
Posted
Updated 31-Mar-11 21:49pm
v3
Comments
Sandeep Mewara 1-Apr-11 2:32am    
Not clear or incomplete question.

One can easily change the font style for a column at design time. Are you looking for runtime solution? You should form complete questions to get proper help.
ZeeroC00l 1-Apr-11 2:39am    
Please complete the question so that everyone can understand what exactly are you looking for.

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.font.aspx
This link might help you solve your problem

Google is a good place to start when you don't know how to do something: a simple search "change font gridview column" lead me straight to MSDN[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Apr-11 2:44am    
Griff, how are you today?
Your particular MSDN link is about ASP.NET, not what OP asked about.
I assumes WinForms, please see my Answer.

It's 1st of April today! Please see this post (and my "Answer"):
http://www.codeproject.com/Answers/175616/WARNING-Black-Line-of-Death-in-windows-phone-7.aspx

:-)) :-))

--SA
If you're talking about System.Windows.Froms.DataGridView, yoy can style columns, headers or separate cells separately. There is very dedicated styling schema, see: http://msdn.microsoft.com/en-us/library/1yef90x0.aspx[^].

—SA
 
Share this answer
 

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