Data loading FROM the grid
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Data loading FROM the grid

  1. #1
    Join Date
    Dec 2010
    Posts
    1

    Question Data loading FROM the grid

    Its my first time here. And I'm a new to programming and to VB.NET too so please don't mind if I say or ask stupid things :P

    Okay here's my question. Let's say I have a table which contains student details. (Student Code, Name, DOB, Sex, Address, Contact No) and I have a grid which shows ONLY the student code and the name.

    Now What I wanna do is when you double click on a cell, ALL the data related to that particular row should be loaded into a form with textboxes.

    Please a little help with some example code would be really appreciated.


    Thanks very much.
    I.J

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,813

    Re: Data loading FROM the grid

    Well it depends in part on how your grid is populated but in general you would likely need to do a query on your database using a where clause so as to get the record that matches the selected student code.

    There are lots of samples online for working with data is this way try a couple of google searches.
    Always use [code][/code] tags when posting code.

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center