Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically I have a datagrid of 6 columns.Also,on the same form I have 6 TextBox. When i fill all TextBox, i click on a Button "ADD"; then, all the textbox are loaded in the appropriate columns of my DataGrid.

In other words, I have a datagrid composed of:

COLUMN 1COLUMN 2COLUMN 3COLUMN 4COLUMN 5COLUMN 6

Now,in another region of the same window(form)I have:

TextBox1TextBox2TextBox5TextBox4TextBox3TextBox6

I want that once all the TextBox are filled, each time that i press the button "ADD",all the contents of the textbox appear in the appropriate columns, ie

COLUMN 1COLUMN 2COLUMN 3COLUMN 4COLUMN 5COLUMN 6

TextBox1TextBox2TextBox5TextBox4TextBox3TextBox6

TextBox4.1TextBox3.1TextBox2.1TextBox5.1TextBox1.1TextBox6.1

TextBox4.2TextBox3.2TextBox2.2TextBox5.2TextBox1.2TextBox6.2

The DataGrid should be fill always that i click the button"ADD"

Note: Is not a DataGridView, is DataGrid
Thanks,
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900