By default, WebGrid will directly add, update or delete a row. However, you can display an alert message before WebGrid add, update or delete a row.
In this topic, you will learn how to display an alert message before adding, updating or deleting.
To display an alert message before adding, deleting or updating a row
- Right click on the WebGrid to open WebGrid.NET Designer.
- Focus on Popular Settings and click See all properties.
- To display an alert message before adding a row, set NewRowLostFocusAction to AlwaysPrompt.
- To display an alert message before updating a row, set RowLostFocusAction to AlwaysPrompt.
- To display an alert message before deleting a row, set PromptBeforeDelete to True.