Introduction

Power Pages is a helpful tool that makes it easy to create websites using low-code development. It also allows for rich integration with other Power Platform solutions.

Recently, I had a requirement to use editable grids within Power Pages for list data. I managed to find some documentation on using code components for Power Pages here: https://learn.microsoft.com/en-us/power-pages/configure/tutorial-pcf-code

Reading this, I found it confusing to understand as I felt it lacked clarity on whether you could in fact use editable grids.

To help streamline the process and save you time, I have put together a quick guide on how to use an editable grid in your Power Pages lists.

Add the Editable Grid component to your desired table

I am using the Accounts table with a solution called “Test solution” for this demonstration.

  1. Within your solution, navigate to Tables and then the ellipses and click “Switch to Classic”.
Navigate to Classic Solutions
  1. Double click the Account Table (also called Entity).
Double Click Account
  1. Click the Controls tab and then Add Control…
Click Control Tab
Add Control
  1. In the Add control menu, search for and select the PowerApps grid control, then click Add.
Click Add

5. Ensure that the Power Apps grid control is enabled for Web and Phone/Tablet if required.

  1. Select the control to bring up the properties.
  2. Set the value of Enable editing to “Yes”. You can enable other properties too if required, and I recommend you check out the documentation to find out which each property does.
Enable editing
  1. Click Save, and then click Publish
Save and Publish

Add the component to Portal Management

Now we have our editable grid added to our table, we need to configure Power Pages to use it. The first step is to add a new List so it can then be selected when adding it to our page.

  1. Navigate to make.powerpages.microsoft.com
  2. Select the ellipses against your site and select Portal management
Portal Edit
  1. Under Content, go to Lists, click New
Add new list
  1. Give your List a Name, select the Table, and the website
List name and Table selection
  1. Add your views
Add  views
  1. Make sure that Use a configured code component is set to yes. You can change other properties here as needed, and then click Save and Close
Set Code component to Yes

Add the editable grid to your page

The final step is to add the list to our page and test it out.

  1. Navigate back to your Power Page site and edit it
Edit Page
  1. Go to the page where you wish to add the editable grid. In my example I have a test page called Temp
Navigate to page
  1. Add a List to the page under the Choose a component to add to this section
Add a List
  1. Add a List to the page under the Choose a component to add to this section
Add list from menu
  1. Sync and preview your page, you should now see the editable grid displayed in the preview page.
Sync and Save

Conclusion

We should now be able to see our editable grid component in action:

0:00
/0:31