Thanks to Audrie Gordon for such a nice video on PowerApp hacks. One of hack was related to how to extend Gallery list control to make it editable. On same lines, in this blog we will see how to add delete button to Gallery list which will remove item from list.
- Select Gallery control, expand Icons under Insert tab and click on Trash icon to add it to Gallery control
- Align icon to right side. Select icon and add below code to OnSelect property of icon which will remove selected item from data source “Companies”.
- Run your app, click on delete button. Item will be removed from Gallery list as well as deleted from data source.