how to show data in GridView widget?
Use ArrayDataProvider, you might need to massage your data before passing to it.
https://www.yiiframework.com/doc/guide/2.0/en/output-data-providers#array-data-provider