CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    47

    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

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    47

    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
  •  





Click Here to Expand Forum to Full Width

Featured