By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,369 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,369 IT Pros & Developers. It's quick & easy.

DataGridView

P: 4
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.
Jan 21 '09 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
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....
Jan 21 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.