If your datasource does not have data then show the message based on the datatable row count.
Before binding the datasource to grid, check for rows in the datatable. If there is any row then bind it or else show the message.
Ex:
if(mygridsDataSourceTable.Rows.Count > 0)
{
}
else
{
}