private void Window_Closed(object sender, EventArgs e)
 {
     //dp.SwitchSelectionMode("row");//single row selection mode is set for the vargrid. It was default.
     dp.MatchVarIndex = 0;//resetting back to zero so that next time it should not start with the last value
     if (appWin == null)
     {
         return;
     }
     appWin.CloseFindVargrid();
 }