Solved

Retain selection in datagridview

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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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