[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Restore Selected Item in Grid after refresh of Grid

Posted on 2004-10-21
Medium Priority
Last Modified: 2010-04-23
Lets say I have a grid...a user clicks on a ROW and a Modal form pops up...then they make some changes and return to the Grid. What is the quickest way to put the Grid Index pointer on the same row they left...here is the catch, the grid refreshes it's data whenever the modal form closes, and more records may be in the grid then when the user opened the modal form...therefore I cannot simply rely on the ROW NUMBER because the records position may have moved within the grid...I can capture the ID of the record selected...but how do you restore based on this? Do you have to loop through the entire grid to get the new row number and then use...

dgMainGrid.CurrentRowIndex = intRowNumberOfID
Question by:natloz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

bramsquad earned 1000 total points
ID: 12374904
yes, if that data is totally different you will need to filter through the data to find your specific ID number.

check this question out



Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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