private void data_ColumnHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { var col = data.Columns[e.ColumnIndex]; var tag = col.Tag as string; if (tag != null) { work.FindOrAdd(tag); } }