Solved

Retain selection in datagridview

Posted on 2016-09-30
2
23 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now