I am trying to create a DataTable and bind it to a DataGridView. It works, but I can\'t set columns headers via the Caption property.
DataTable
DataGridView
Caption
I think when you bind to a DataTable, the DataGridView does not use the Caption property. It only works when you bind to a DataSet.
You can modify the column headers manually like this:
dataGridView.Columns[i].HeaderText = dt.Columns[i].Caption;