Hi there
can someone help with a problem im having with a datagridview
i have pre setup two columns the first is a DGV comboboxcell and the other is just a textboxcell.
When i try and load in saved data all it does is add two new columns after the two existing columns
I need it to fill the existing columns of the datagridview not add two new ones ive tried all sorts of things, like trying to add each row in seperatley however this didn't work either
this is the code that i use to fill the DGV
Ive tried using the
but then i get the right amount of rows but with no data in
all the data comes from a database and the datatable is filled using a datadapter
if anyone has any clue please get back to me im getting desperate
regards Ian
can someone help with a problem im having with a datagridview
i have pre setup two columns the first is a DGV comboboxcell and the other is just a textboxcell.
When i try and load in saved data all it does is add two new columns after the two existing columns
I need it to fill the existing columns of the datagridview not add two new ones ive tried all sorts of things, like trying to add each row in seperatley however this didn't work either
this is the code that i use to fill the DGV
Code:
dvg.datasource = datatable
Ive tried using the
Code:
DGV.Autogenertatecolumns = false
but then i get the right amount of rows but with no data in
all the data comes from a database and the datatable is filled using a datadapter
if anyone has any clue please get back to me im getting desperate
regards Ian