views:

572

answers:

1

Well, some kind of n00b question from me. I've surfed the net and similar questions here but haven't found any right answers for such simple (as I thought) problem.

I have a DBGrid. I select one row and make some actions with another data linked to this row. After I finished, my DBGrid being refreshed and selected row resets to first. I want to get the same row selected that was selected before refreshing DBGrid data. Any suggestions?

+3  A: 

Before refreshing, save the linked dataset's current selection as a bookmark, then restore the bookmark afterwards.

Mason Wheeler
Yup, seems it works. Thank you!
Vlad