DataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tanuja5
    New Member
    • Jan 2009
    • 4

    #1

    DataGridView

    hi....
    I want to know how to pass the data's of the checked checkbox row in DataGridView to a form at run-time.I have a GridView (with 4 columns) which i have binded to the database,and i created a checkbox column in the grid view, I kept a button below the form which i named as "modify" and i created a second form with 4 textboxes and a "update" button.If a user at run time checks a particular row and clicks the "modify" button ,the data's in each cell should be passed to the second form's textbox field so that the user can make changes and if he clicks on "update" button on the second form the database table should be updated.I am using access database.I am beginner in C#.net and i donno how to proceed with it.Kindly help me.
    Last edited by Frinavale; Jan 21 '09, 03:51 PM. Reason: Moved to C# Answers from .NET
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You could create a constructor for the second forum that accepts the item's information as parameters so that it's initialized properly. Or, instead of a constructor, you could create a method that does this. Or you could create Public Properties for the second forum which you can call to get and set the information. You could create a combination of the above if you want to....

    Comment

    Working...