Is there a way to complex databind to a column's header text? Or is the only way to manually set the values and listen for change events from the source?
For the record, I've tried both
MyDataGrid.DataBindings.Add("Columns[<columnIndex>].HeaderText",MySource,"MyProperty");
and
MyDataGrid.DataBindings.Add("Columns[\"ColumnName\"].HeaderText",MySource,"MyProperty");
to no avail, and neither DataGridViewColumn
and DataGridViewColumnHeaderCell
have a DataBindings
property.