Before you perform an action I show a certain form. Ex: Before deleting a record I show a form asking if it really is to delete. After doing this I wanted to use Grid.ActiveRow.Cells (1). Value to build a SQL to do the deletion. It turns out that after showing the form I lose the value of active row. As if I did not have any active line.
What event of the grid are you using? To show a prompt for deleting rows, you should use the BeforeRowsDeleted event of the grid. Set e.DisplayPromptMsg to false in the event to cancel the grid's default prompt and then you can show your own dialog. Then you can set e.Cancel to true if the user decided to cancel the deletion.