I placed a DataGridView in the form and configured it to have 3
columns A, B and C (all in design mode).
After that, I did through code a DataTable also with 3 columns, A, B,
and C.
When I assign the source (dataTable) to the dataGridView instance, my
dataGridView instance has its columns duplicated. How can I use the
columns already created in the form instead adding new ones?
Misbah Arefin - 01 Mar 2008 04:16 GMT
set AutoGenerateColumns = false on the datagrid

Signature
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
> I placed a DataGridView in the form and configured it to have 3
> columns A, B and C (all in design mode).
[quoted text clipped - 5 lines]
> dataGridView instance has its columns duplicated. How can I use the
> columns already created in the form instead adding new ones?