Results 1 to 5 of 5

Thread: Search Option

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    334

    Search Option

    i am trying to create a search option, the user inputs the product name and i want to performa search to return two tables in the dbase. This is all okay.

    when displaying the found data, come will be in textboxes, comboboxes and also a datagrid. Do i need to assign each column individually eg:


    txt1.Text = Product Details.Lname
    combo1.Text = ProductDetails.Town

    and in the datagrid
    datagrid.column(0) = ProductDetails.Salary

    can i do it lik this? is there a similar way to do it???

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Search Option

    Dunno much about DataGrids, but if you assign it to a table don't the columns come up automatically?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    334

    Re: Search Option

    with the storage mode u assign the grid to an array.. i have created the columns for the grid manually, not assigned it directly to any table..... cos i thought i wod have to edit names anyway!

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Search Option

    OK, I'm really out of my depth here but just an idea, can you iterate through the table's fields and assign each to a column index?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    334

    Re: Search Option

    yeah dats wot i thought of, was just wondering if there was a easier way to be honest, il try it and let u no

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