Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

Retain selection in datagridview

Hello,
How can I retain the selection in datagridview after adding a new row to it?

Cheers
0
RIAS
Asked:
RIAS
1 Solution
 
Rekha 41Commented:
After update , you clear the selection of datagridview like this

dataGridView1.ClearSelection();

and then select the row which you want to focus.
0
 
RIASAuthor Commented:
Its not one row.It is selection of rows.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now