I have 4 textboxes
I want to add a row to a datagridview
datagridview1.rows.add ( txtbox1.text txt box2.txt .... )
Help me. Thanks
Printable View
I have 4 textboxes
I want to add a row to a datagridview
datagridview1.rows.add ( txtbox1.text txt box2.txt .... )
Help me. Thanks
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?
ok I read the documentation for the rows and I found how... thanks
datagridview1.rows.add(txtbox1.text, txtbox2.text, txtbox3.text)