简体   繁体   中英

How to programaticlly select and click on a row within datagridview in c#?

When user search for a spesfic item I would like the application to select and clicks the first row. currentlly the applications only highlights the first row but not sure how to programticlly click on a row. Code:

target.Rows[0].Selected = true;

target.Rows[0].Cells[0].Selected = true;

Helps you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM