|
-
Dec 14th, 2007, 03:14 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2008] Textboxes add row to datagridview
I have 4 textboxes
I want to add a row to a datagridview
datagridview1.rows.add ( txtbox1.text txt box2.txt .... )
Help me. Thanks
-
Dec 14th, 2007, 08:04 PM
#2
Re: [2008] Textboxes add row to datagridview
Looking at the documentation for the DataGridView.Rows property we see it is type DataGridViewRowCollection. Looking at the documentation for the DataGridViewRowCollection.Add method we see that it is overloaded. It can accept no parameters, a DataGridViewRow object, and Integer or an Object array. Having read the documentation for each one, which do you think is most appropriate for your circumstances?
-
Dec 15th, 2007, 08:53 AM
#3
Thread Starter
Addicted Member
Re: [2008] Textboxes add row to datagridview
ok I read the documentation for the rows and I found how... thanks
datagridview1.rows.add(txtbox1.text, txtbox2.text, txtbox3.text)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|