Clean DataGrid Detail and Form

Clear form and grid details

On a page create a datagrid0, a form from the same table and a master detail.

Since I can clean the form and the grid detail when a grid0 record is deleted, I want to show the form with no field after deleting or before selecting, it may be that the form is locked for editing and locked after deletion but that do not show selected records, if the grid is out of selection do not show results on the grid and in form until an option is selected, which is the best practice and I hope it is not a silly question, greetings.

Maybe you can set form Visible property to expression if the DataGrid selected item is not null. You can check our auto-generated Add/Edit CRUD pages for such expressions.