Is it possible to show "No data found" on datagrid/advance datagird in Flex

In order to show "No Data" message above the DataGrid when there is no data in it we can use the following technique:

1. create a canvas and place the data grid on it
2. place also a HBox/VBox on that canvas and in it place a label with the message you want (I.E "no data")
3. Control visibility of the HBox by using binding with the DataGrid length

See code


<?xml version="1.0" encoding="utf-8"?>