PDA

View Full Version : سوال: تغییر فونت DataGridView



ACorvinus
یک شنبه 27 بهمن 1387, 18:35 عصر
چجوری میشه ؟
پس چرا DataGridView خاصیت Font نداره ؟:عصبانی:

anooshiran
یک شنبه 27 بهمن 1387, 19:47 عصر
دوست عزيز
DatagridView هم خاصيت فونت داره



DataGridView1.ColumnHeadersDefaultCellStyle.Font = New Font("Terafic", 12, FontStyle.Bold)
DataGridView1.DefaultCellStyle.Font = New Font("Tahoma", 12, FontStyle.Bold)
DataGridView1.Rows(0).Cells(0).Style.Font=new Font("Tahoma",10,FontStyle.Italic



خط اول تغيير فونت ColumnHeader
حط دوم تغيير فونت كليه Cell ها
خط سوم تغيير فونت يك Cell خاص

mohammadreza.4747
پنج شنبه 17 فروردین 1391, 22:26 عصر
اگر شما فونت فرم را عوض کنید فونت DataGridView هم عوض میشود.