CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010

    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.

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.