Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

 

dvg.datasource = datatable

 

Ive tried using the

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...