Click here to Skip to main content
15,898,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm developing a desktop application and am using a datagridview to show the data from the database.

I have a database in which I have 3 columns of table1

name qty tray_Calculation

I want change the font of only datagridview's 1st column in which name is shown in hindi, other column's font should be arial.

Is It Possible?

Can I change the font of datagridview according to column?

I also used datagridview1.defaultcellstyle.font=new font("Kruti Dev 010",10) but it changes the font of all cells in datagridview.

Can any one help me Please.

Thanks in advance
Posted
Updated 21-Dec-10 21:36pm
v2
Comments
Dalek Dave 22-Dec-10 3:36am    
Edited for Spelling, Grammar, Syntax and Readability.

 
Share this answer
 
v2
Try this,
DataGridView1.Columns(0).DefaultCellStyle.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
 
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