Results 1 to 9 of 9

Thread: [RESOLVED] ComboBox in Datagridview

Threaded View

  1. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: ComboBox in Datagridview

    I can't believe that you would consider it easier to float an unrelated ComboBox over a DataGridView by finding the coordinates of a cell. This is all about data binding. if you bind your data properly in the designer it takes no code whatsoever to accomplish what you want to do. Take a look at the project I've attached. I added a DataGridView, two BindingSources and a DataSet with two DataTables to the form in the designer. I set up the appropriate data bindings in the designer and voila: exactly what you're looking for. The only code I had to write was to populate the parent table.
    Attached Files Attached Files
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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