|
-
February 23rd, 2009, 11:54 AM
#1
DataGridView question
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
Visual Studio 2005 Professional
-
February 23rd, 2009, 02:56 PM
#2
Re: DataGridView question
a DataGridView can't have multiple DataSources. You need to change your first datasource to contain the information from the second datasource.
-
February 23rd, 2009, 03:27 PM
#3
Re: DataGridView question
Found my problem...
I had forgotten to put AcceptChanged() to my second DataTable .... (my bad)
Now everything is alright
Thank you anyway for looking.
Visual Studio 2005 Professional
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|