| |

VerySource

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

How to capture the current record line changes

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-9 12:00:01
| Show all posts |Read mode
The DataSource of a DataGridView is a DataTable. In the DataGridView, you can move the record by clicking the mouse and moving the cursor with the keyboard. I need to display the content of the current record row in another place. How can I change it in the current record row? When to capture this action, is it captured in the DataGridView or in the DataTable, please expert guidance, thank you!
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-10-9 18:15:01
| Show all posts
The current record row is it possible to use OnRowCommand to obtain the current record row?
GridViewCommandEventArgs e
(GridViewRow)(((Control)(e.CommandSource)).Parent.Parent) to get the current row
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-10-9 21:45:01
| Show all posts
DataGridView seems to have CurrentCellChange
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