Click to See Complete Forum and Search --> : DataGridView question


lmoreault
February 23rd, 2009, 10:54 AM
Hi,

I am having some trouble with my DataGridView control.

I have a DataView bounded to my DataGridView but I want to use another DataTable as the DataSource for one of my column (which is a DataGridViewComboBoxColumn).

Whenever I try to do so, I keep getting values (DataValues and MemberValues) from the DataGridView bounded DataSource instead of my second DataTable.

Do you have any solution that you would think of ?

Thank you very much

eclipsed4utoo
February 23rd, 2009, 01:56 PM
a DataGridView can't have multiple DataSources. You need to change your first datasource to contain the information from the second datasource.

lmoreault
February 23rd, 2009, 02:27 PM
Found my problem...
I had forgotten to put AcceptChanged() to my second DataTable .... (my bad)

Now everything is alright
Thank you anyway for looking.