Solved

Retain selection in datagridview

Posted on 2016-09-30
2
39 Views
Last Modified: 2016-11-01
Hello,
How can I retain the selection in datagridview after adding a new row to it?

Cheers
0
Comment
Question by:RIAS
2 Comments
 
LVL 1

Accepted Solution

by:
Rekha 41 earned 500 total points
ID: 41823289
After update , you clear the selection of datagridview like this

dataGridView1.ClearSelection();

and then select the row which you want to focus.
0
 

Author Comment

by:RIAS
ID: 41823540
Its not one row.It is selection of rows.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Form VB.Net  import CSV 4 36
Code works but it's slow 28 70
in Dot net,lastest version of MVC 3 23
VB.NET 2008 Publish Error 2 25
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question