Unwanted duplicated columns in DataView

C

claucometa

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top