Dictionary<int, font=""> rowFont = new Dictionary<int, font="">(); public void selectedRowsFont(Font F) { foreach(DataGridViewRow row in Gridview_Output.SelectedRows) { rowFont[row.Index] = F; } } private void Gridview_Output_CellFormatting_1(object sender, DataGridViewCellFormattingEventArgs e) { Font F = null; if (!rowFont.TryGetValue(e.RowIndex, out F)) F = this.Font; //Cannot implicitly convert type 'System.Windows.Forms.DataGridViewTextBoxColumn' to 'System.Drawing.Font<br> e.CellStyle.Font = F; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)