Results 1 to 3 of 3

Thread: New DataGridView Problem.please help

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    125

    New DataGridView Problem.please help

    hi all...
    can anybody tell me how can i get the value from selected row from datagridview, and use this value to do another search and assign the results in another datagridview..

    for example, i type keyword in textbox bar, the datagridview will bring out the relevant records, i click each row that present in this datagridview, i want to read each rows the particular field's value, e.g

    assume i got three records in first datagridview(this datagridview gets records from every time user input the keyword to search
    VB Code:
    1. messageNumber      MessageStatus        DeliveryNumber
    2.                  1000                 original               200GB
    3.                  2000                  Original              200GB
    4.                  3000                  Original              200GB
    so when i input 200GB in search bar, the first datagridview result will present at above .. now i click each rows, i want get each rows messagenumber, so the second datagridview will based on messagenumber in order to find out the table's record, so that can be presented in second datagridview.
    so assume i click the first row in first datagridview, the second datagridview new record maybe like
    VB Code:
    1. :       CHReference               Mile                      LorryID            MessageNumber
    2.              101                         56.7                       yu312            1000

    (but i didn't build up the relation between two tables,because i loaded two tables in different method, not all of their records are matched. so there are no relationships in database. but some of fields like messagenumber exists both two tables)

    can you provide your sample code please??
    i am very appriciate your help!
    Last edited by scotish_bagpipe; Aug 17th, 2006 at 03:08 AM.

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