Results 1 to 3 of 3

Thread: Datagrid

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Datagrid

    hmmm I am trying to think of the best way to ask this question.. So, here goes...

    I have a datagrid on my form... Works great displaying my data fields but what I want to do is....

    Make it when the data row is clicked on (Lets Say John Smith - SSN:999-99-9999) it will open a new form and display information for "John Smith" only using Textboxes and such.. not using the Datagrid... I am sure I have to get the value of what was clicked and then use a query when I display the form... My only question is how?

    Any help is appreciated....

    Anjari

  2. #2
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    anjari
    You can use the BindingContext method of the form to determine which line was clicked and may be pick up a key value that you can use to query the database and display the data in the texboxes of the popup form. However, you'll have to requery the data in the main form on return.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    sorry...

    Sorry to ask but could you supply a small section of code?

    Anjari

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