Virtualgrid: Add a dialog box.

Add a dialog box to show the error message when a user does not enter the path of data.
Remove the unnecessary validation logic.