的細胞在我winform
是使用DataGgridView
在某些情況下,我想特別的字體設置爲某個列,我實現,使用下面的代碼Dynamicaly設置字體的DataGridView
this.grvInvoice.Columns["mat_Name"].DefaultCellStyle.Font = new Font("Verdana", 14);
但我想設置某些字體和大小僅適用於某些單元格。我嘗試下面的代碼
grvRequest.Rows[i].Cells["item"].Style.Font = new Font("Verdana", 14);
不工作。是否有可能set specific font and size dynamically to a cell of DataGridView