The Power Apps grid control is a new and improved version of the data grid control for Power Platform model-driven applications. One of the most appealing aspects of the new grid control is the ability to customize the look and feel of the grid columns using specialized PCF controls known as Cell Renderers. However, the current architecture of cell renderers lacks the ability to inject parameters to the control to make them more generic and reusable. In this post, the author shows how to attain a certain degree of genericity by making the cell renderer aware of their root table and how to obtain runtime information about lookup fields present in the underlying grid data. The end-result can be appreciated in the author's latest community PCF project, the RecordImage Cell Renderer.
Login now to access my digest by 365.Training