| |

VerySource

 Forgot password?
 Register
Search
View: 600|Reply: 2

TreeView and DataGrid association issues ''

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 12:40:01
| Show all posts |Read mode
After selecting a Node, multiple Rows are created and saved to the corresponding objects.

The problem is that when selecting another Node to create a Row, the previously created Row is still ``

How to make him realize which node to select and display the added lines of which node?

Please master pointer, wait online
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-9 21:45:01
| Show all posts
That is, when clicking on a node, only the data of the added response line is displayed
Reply

Use magic Report

0

Threads

26

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-3-10 11:45:02
| Show all posts
Assign the object instance to the Node.Tag property, add a DataTable member to the object to save the row record

When used, in the AfterSelect event of Tree, bind the DataTable to the display
DataGrid.DataSource = ((object class) (e.Node.Tag)). DataTable
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