Row Delete functionality is created and used to help end user easily remove certain rows from the grid by pressing “Delete” button on the keyboard or any other page element (such as button or link) that can rise the event needed for row deletion.
In order to use Delete Row functionality on the “WebGrid” the user must enable row deletion by setting “AllowDeleteDefault” property in the “DisplayLayout” object or set “AllowDelete” property to “Yes” on the specific band. If the user wants to delete selected rows the selection for the grid must be enabled first and set to row selection.
To delete data in “WebDataGrid/WebHierarchicalDataGrid” user must add the “RowDeleting” behavior to the “Behaviors” collection. This behavior allows end-users to delete rows in “WebDataGrid/WebHierarchicalDataGrid”. User also needs the “Selection” behavior enabled for deleting to function in the UI. When “RowDeleting” is enabled in the designer, user will be prompted to add the “Selection” behavior as well. A row can be deleted by selecting the row and pressing the delete key or by calling the needed function from the user defined event.