2011-02-16 102 views

回答

0

喜欢的东西

dataGridView1.Font = new Font("Arial",8.5F , FontStyle.Bold); 
1

您可以使用此代码(你也可以在t中找到它他designer.cs):

var dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); 
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle1;