Transfer textbox records/data to DataGridView

JohnV

Active member
Joined
Feb 20, 2015
Messages
27
Programming Experience
3-5
Hi forumer's,

I'm newbie in this site and at the same time in vb.net.
I have a forms contains 3 textboxes and a DataGridline. my requirements is to transfer the data from textboxes to DataGridView using append button, also can accept multiple records or rows. May I ask your help on how to work on this. your help is very much appreciated.

Attached sample form.
 

Attachments

  • sample.jpg
    sample.jpg
    33.7 KB · Views: 23
The grid has a Rows property and that has an Add method. You simply call that method and pass the values you want to add in the new row, whatever those values happen to be.

By the way, you presumably only want to add one record at a time so that first button should read "Append Record" rather than "Append Records". Also, the second button should read "Remove Records" rather than "Removed Records", assuming that it's purpose is to remove the selected rows from the grid.
 
Back
Top