Hi All;

I am using the datagridview to display information from a database table.

I use the following code to set the header and then set the column size...

Code:
DataGridView1.Columns("ORDER_NBR").HeaderCell.Value = "Order Number"
DataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnMode.AllCells)
In the grid column I see

Order
Number


instead of

Order Number

Does anyone know why this is happening?

Thanks
Lin