Create a refresh button

Create a button that refreshes data in the data grid.

Tip: Instead of creating this widget from scratch, you can add Alarms Event Logger from Template Libraries that includes the refresh button.
  1. In Project view, right-click MainWindow (type) and select New > Base controls > Button.
  2. In Properties, set Text to Refresh Data.
  3. In Events, next to MouseClick event, select Add and select ProjectName > UI > MainWindow (type) > DataGrid1 > Refresh