| |

VerySource

 Forgot password?
 Register
Search
View: 1249|Reply: 8

How to display data in a data table with a DataGrid and then put it into another data table

[Copy link]

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-10 13:00:01
| Show all posts |Read mode
I now use a DataGrid to display the data from one data table, so how can I put the data displayed by the DataGrid into another data table?
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-13 12:36:01
| Show all posts
Now that your DATAGRID can bind data, modify the data source to complete the requirements.
Reply

Use magic Report

0

Threads

25

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-13 18:09:01
| Show all posts
Execute after update
insert table1 (column ...) select column from table2 where ....
Reply

Use magic Report

0

Threads

13

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-13 18:54:01
| Show all posts
Is it okay to insert the data in DATAGRID into the data table cyclically?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-14 10:36:01
| Show all posts
Data is now displayed in a DataGrid from a data table
==========
Do you want to write the displayed data, including the formatted data, to another DataTable?
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-14 14:45:01
| Show all posts
疾风劲草I tried but it didn't work, there is no data in the second table
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-1-14 15:09:01
| Show all posts
Well, it is to put the data of one table into another table, and just use a DataGrid to display the data in the middle
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-14 16:09:02
| Show all posts
Well, it is to put the data of one table into another table, and just use a DataGrid to display the data in the middle
============

Put data from one table in another?
If you don't change the content.

DataTable dt = ((DataView) this.DataGrid1.DataSource) .Table
Reply

Use magic Report

3

Threads

17

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-1-14 19:27:01
| Show all posts
Sunspot, help you ...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list