Results 1 to 4 of 4

Thread: [RESOLVED] When adding a new row using datagridviewer, my active field jumps to other values?

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Resolved [RESOLVED] When adding a new row using datagridviewer, my active field jumps to other values?

    The dropdown box displays all the items previously added to that column.

    I want the user to be able to enter a new value OR just pick a previous value from the dropdown list. (This is when inserting a new row)

    Problem:

    Whenever I enter a value, it jumps around in my table like its on acid or something.
    Whenever I select a value from the list, it takes me to the line in which the value was originally entered.

    How do I get it to do what I want.

    Name:  exp.jpg
Views: 908
Size:  105.4 KB

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

    Re: When adding a new row using datagridviewer, my active field jumps to other values

    Have you bound the grid and the combo box column to the same data source?
    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

  3. #3

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Re: When adding a new row using datagridviewer, my active field jumps to other values

    Yes I have, but it still jumps up to the original record

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

    Re: When adding a new row using datagridviewer, my active field jumps to other values

    Quote Originally Posted by tgf-47 View Post
    Yes I have
    That doesn't make sense. A combo box column represents a parent/child relationship. There needs to be two separate data sources: the parent list/table is bound to the column and the child is bound to the grid.
    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

Tags for this Thread

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