foreach (DataGridViewColumn col in dgv.Columns) { string strColumn = col.HeaderText.ToString(); if (strColumn.ToLower().Contains("hello")) { //col.HeaderCell.Value = ""
System.Windows.Forms.DataGridViewColumn.HeaderText
string
HeaderText.ToString()
foreach (DataGridViewColumn col in dgv.Columns) { col.HeaderText = col.HeaderText.Replace("hello", "great"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)