Advertisement

06.11.2008 at 09:19AM PDT, ID: 23476399
[x]
Attachment Details

How to maintain selected row in a datagridview after reselecting data from Database?

Asked by Elham_Seif in .NET Framework 2.x, C# Programming Language, Visual Studio

Tags: , ,

I am using a datagridview in c# application. After selecting one row and making some changes to it I need to reload all data from Database but the problem is that the selected row will be lost and it always go to the first row. What's the best way of retaining the prosition of selecte row after reloading the data.
Start Free Trial
[+][-]06.11.2008 at 09:24AM PDT, ID: 21761671

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 09:33AM PDT, ID: 21761751

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, C# Programming Language, Visual Studio
Tags: microsoft, asp.net, 2005
Sign Up Now!
Solution Provided By: junges
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.11.2008 at 09:42AM PDT, ID: 21761827

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628