Results 1 to 3 of 3

Thread: [RESOLVED] datagridview question

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Resolved [RESOLVED] datagridview question

    sorry this is probably very sloppy


    I am connected to a obdc database to look through records

    i wanted a datagridview at the bottom and several combo boxes and maybe two date pickers at the top


    the idea being as i select items at the top the datagridview would widdle away entrys to only show the ones that are reflected in the combo boxes


    example

    all tickets that have jsmith as customer
    would show 100 tickets

    all tickets that show jsmith as customer and jdoe as the reporter
    would show 50 tickets ..something like that

    the way its currently working is if i select Jsmith it will just take me to the first ticket that has jsmith in the customer field and leave all the others


    i hope this makes sense

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

    Re: datagridview question

    Bind your data to a BindingSource and bind that to your grid. As you set values in the other controls you set the Filter property of the BindingSource and the grid data will reflect the changes.
    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
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: datagridview question

    Last edited by Crash893; Jul 18th, 2007 at 05:42 PM.

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