Introduction to modern Table control
Table control has been around in Power Apps ever since it came into existence. But the classic version had a ton of flaws. I had written this blog about why you should always use a gallery instead of the classic table control. So although it isn't a new control, the classic/earlier version isn't available anymore. So, we will simply go through the properties of this modern control without any comparison to the older version.
Properties
- Items - The Dataverse table to populate the control
- NoDataText - The text to show when no records are visible
- ReflowBehavior - To control the responsive behavior of the control. There are 3 options:
- 'PowerAppsOneGrid.ReflowBehavior'.Reflow (the table displays in tabular form when the control is 480 or more pixels wide and transitions to a list format in narrower conditions)
-
'PowerAppsOneGrid.ReflowBehavior'.GridOnly (the table always displays in a tabular (or list) format regardless of the control width. You can use Power Fx formulas to create your own breakpoints for defining the responsive behavior of the table)
-
'PowerAppsOneGrid.ReflowBehavior'.ListOnly (the table always displays in a list format regardless of the control width. You can use Power Fx formulas to create your own breakpoints for defining the responsive behavior of the table)
- EnableSorting - To allow users to sort by columns
- EnableRangeSelection - To allow users to select a range to copy and paste it somewhere else
- Selected - The selected record (when a single record is selected)
- SelectedItems - The selected records when multiple records are seleced
- ShowAvatar - To show the user's avatar or not
- ShowColumnHeaders - To show the column headers or not
- ShowFooter - To show the footer or not
Key considerations
- You cannot edit the data in this control. It is read-only.
- You can populate the control only with Microsoft Dataverse tables and collections.
- The control shows a predefined set of fields by default when connected to a Dataverse table. You can also display or hide other fields based on your needs.
- The control can automatically switch between tabular and list formats. You can manually manage this behavior using the Reflow property.
- When you run your app, you can adjust column widths. However, the changes aren't saved.
Using modern Table control
Here is a quick demo:
Stay tuned for the remaining modern controls!
To read the official documentation of modern controls, click here.