Results 1 to 2 of 2

Thread: how do i select a single row from a datagridview in C#?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    Question how do i select a single row from a datagridview in C#?

    I am developing Windows Form Application, i ma uisng VS 2008.

    i have a datagridview that displays customer information.

    now i want to select one row from the datagridview then after selecting there is a command button show, then i want to click the button, so that it will show me an other page.

    i know how to populate data indatagridview from database, but how to select a row then on click button it will show me an other form form2.

    page is Form1.... contains the dataagridview1 and show button

    form2...is an other form.

    form 2 will be displayed when the button Show in form1 is clicked and Form2 to be displayed a single row from the datagridview MUST be selected, so how can i do that?

    help me i am a very beginner of C#, together we can change the world...

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how do i select a single row from a datagridview in C#?

    Follow the CodeBank link in my signature and check out my thread on Editing a Grid Row in a Dialogue.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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