Power Apps · canvas componentData display✓ Tested in StudioMIT License
Data table
Your rows as a table, cards or a list, with coloured status pills, segmented progress, sortable headers, checkboxes with bulk actions, a row menu, and loading and empty states. Select a row to open it. Built on a gallery, so it looks the way you want.
As it is when you paste it, with every input at its default.
Screen1
#1001Avery BrooksIn progress2/4Mar 3High
#1002Jordan LeeCompleted5/5Mar 5Medium
#1003Priya NairOn hold1/3Mar 9Low
#1004Mateo AlvarezNot started0/4Mar 12High
#1005Chloé MartinIn progress3/5Mar 14Medium
#1006Kenji WatanabeCompleted4/4Mar 16Low
#1007Amara OkaforIn progress1/4Mar 18High
#1008Liam WalshNot started0/3Mar 20Medium
#1009Noah FischerOn hold2/5Mar 22Low
#1010Sam RiveraIn progress4/5Mar 24Medium
Formulas on this screen
Set the same ones in Studio to try it the same way; there, each Notify shows its event in a banner, which this preview leaves out so nothing covers the component. The instance names are the ones Studio gives the first copy on a screen.
lcsDataTable_1.OnRowSelect=Notify("Open order #" & RowId)
lcsDataTable_1.OnRowAction=Notify(Action & " order #" & RowId)
A web replica that behaves as the component does in Power Apps. In Studio it uses Microsoft's controls, which can look slightly different.
Add it in five steps
1In Power Apps Studio, open Settings > Updates and check that Modern controls and themes and Enhanced component properties are on.
2Open the Components tab in the tree view and select New component.
3Select an empty part of Studio, so the new component isn't selected.
4Copy the YAML on this page and press Ctrl+V. lcsDataTable appears with all its properties.
5On a screen, insert it from Insert > Custom > lcsDataTable.
What it needs
No premium licence: standard controls, no connectors
Modern controls and themes: on
Enhanced component properties: on
Tested in Power Apps Studio 3.26094.9 on October 25, 2026
Version 0.2.1
Properties (30)
Read from the component's own YAML, so they always match what you paste.
Inputs
Property
Kind
Type
Default
Columns
The columns, in order, up to six: Label, Width in pixels, and Kind: Text, Strong (bold), Badge (a coloured pill) or Progress (a segmented bar from text such as 2/4). Column 1 shows C1 from Rows, and so on.
The column that names a row: the title of a card or list item, and the name screen readers hear.
Input
Number
2
SubtitleColumn
The column shown small above a card's title and under a list item's.
Input
Number
1
Sortable
Column headers can be selected to sort. The table runs OnSort; your app sorts Rows.
Input
Boolean
true
Selectable
Shows a checkbox on each row, and one to select them all in table view.
Input
Boolean
true
BulkActions
Buttons for the selected rows, separated by commas, such as Approve,Reject. Up to three. Leave empty for none.
Input
Text
""
RowActions
The row menu, separated by commas, such as View,Edit,Delete. Up to three. Leave empty for no menu.
Input
Text
"View,Edit,Delete"
Density
Comfortable (60 tall rows, easy to touch) or Compact (44).
Input
Text
"Comfortable"
Loading
Shows grey placeholder rows while your app loads the data.
Input
Boolean
false
EmptyTitle
The heading when there are no rows.
Input
Text
"No items found"
EmptyText
The line under it.
Input
Text
"Try changing your search or filters."
AccentColor
Your brand colour, for progress, checkboxes and the selected rows.
Input
Color
RGBA(15, 108, 189, 1)
Theme
Light, or Dark for a dark screen.
Input
Text
"Light"
Motion
Plays short animations: progress segments fill in one after another, a highlight sweeps once across the loading rows, and the empty state's icon pops in. None plays for people who've asked their device for reduced motion.
Input
Boolean
true
Outputs
Property
Kind
Type
Default
CurrentView
The view shown now: Table, Cards or List.
Output
Text
—
SortColumn
The column sorted by, from 1; 0 for none.
Output
Number
—
SortDescending
True when the sort runs from Z to A or high to low.
Output
Boolean
—
SelectedIds
The selected rows' Ids, separated by semicolons.
Output
Text
—
SelectedCount
How many rows are selected, including any no longer in Rows.
Output
Number
—
SelectedRows
The selected rows that are in Rows now.
Output
Table
—
Events
Property
Kind
Type
Default
OnRowSelect(RowId)
Runs in your app when the user selects a row, a card or a list item, such as to open it.
RowId (Text): The selected row's Id.
Event
—
false
OnRowAction(Action, RowId)
Runs in your app when the user chooses from a row's menu.
Action (Text): The action's text, such as Edit.
RowId (Text): The row's Id.
Event
—
false
OnBulkAction(Action, RowIds)
Runs in your app when the user selects a button for the selected rows.
Action (Text): The button's text, such as Approve.
RowIds (Text): The selected rows' Ids, separated by semicolons.
Event
—
false
OnSort(ColumnNumber, Descending)
Runs in your app when the user selects a column header. Sort Rows by that column.
ColumnNumber (Number): The column to sort by, from 1.
Descending (Boolean): True to sort from Z to A or high to low.
Event
—
false
OnViewChange(NewView)
Runs in your app when the user switches between Table, Cards and List.
NewView (Text): The view now shown.
Event
—
false
Actions
Property
Kind
Type
Default
ClearSelection()
Clears every checkbox, such as after a bulk action.
Action
—
—
Guide
Use lcsDataTable for any list of records people scan, open and act on: requests, orders, cases, tasks. A plain gallery needs all of this built by hand. Microsoft's modern Data grid control can't be styled this way. This component gives you:
Three views from one switch: a Table, Cards that wrap two or three across, and a List with an initial and pills. The user picks; you can start them on any view.
Select a row to open it. The whole row, card or list item is the button, and it runs OnRowSelect(RowId).
Columns from a table you set: up to six, each with a label, a width and a kind. Text, Strong (bold, for IDs), Badge (a coloured pill) or Progress (a segmented bar from text such as 2/4).
Pills coloured by their text, from your BadgeStyles table: In progress is blue, Completed green, High red. Text with no style is grey.
Sortable headers that tell your app which column and which way (OnSort), so you sort the data source itself.
Checkboxes and bulk actions: select rows, then Approve or Reject them together (OnBulkAction(Action, RowIds)).
A row menu that opens inside the row (View, Edit, Delete) and runs OnRowAction(Action, RowId).
Loading and empty states, two densities, your AccentColor and a Dark theme.
The examples call it dtOrders on your screen.
Give it your rows. Each row needs an Id and the text for each column in C1 to C6, in the order of Columns:
Sort when a header is selected. Sorting the data source keeps it delegable:
powerfx
// colOrders, where you load it, sorted by dtOrders.SortColumn
Switch(
dtOrders.SortColumn,
2, SortByColumns(Orders, Customer, If(dtOrders.SortDescending, SortOrder.Descending, SortOrder.Ascending)),
5, SortByColumns(Orders, DueDate, If(dtOrders.SortDescending, SortOrder.Descending, SortOrder.Ascending)),
Orders
)
Show grey rows while you load, and page long lists with the Pagination component:
powerfx
// dtOrders.Loading
locLoading
// dtOrders.Rows, with Pagination named pgOrders
LastN(FirstN(colOrderRows, pgOrders.LastRow), pgOrders.RowsOnPage)
Three things differ from the examples in Use it:
The row's id. A Dataverse row's unique identifier is a column named after the table, such as Order in Orders, not ID. Turn it into text for Id, and back with GUID to find the row.
Choice columns show their label with Text, and are set with their own values, such as 'Status (Orders)'.Approved.
Lookup columns show a column of the related row, such as Customer.'Account Name'.
colOrders holds at most your app's data row limit of rows (500 by default, 10,000 at most), so load it with a filter that Dataverse runs (by status, owner or date) rather than the whole table.
Each row, card and list item is one button, named by its title column, so screen readers say what it opens.
Checkboxes are named "Select" and the row's title. The menu button says "Actions for" the row, and each action says what it does and to which row ("Edit Avery Brooks").
Headers say which column they sort and how it's sorted now. Sorted columns also show an arrow.
Pills always show their text, so colour is never the only signal.
Choose BadgeStyles colours with enough contrast; the defaults meet WCAG AA.
With Motion on (the default), progress segments fill in one after another, a highlight sweeps once across the loading rows, and the empty state's icon pops in, each within about a second and a half. None plays for people who've asked their device for reduced motion, and Motion set to false shows them at once, as in 0.1.0.
Up to six columns, as text. Turn numbers and dates into text in Rows (Text(DueDate, "mmm d")).
Keep the column widths within the component's width; columns past the edge are cut off.
Cards show the first two Badge columns, the first Progress column and one more text column. The list shows the first two Badge columns.
Progress bars show up to ten segments.
The row menu opens inside the row, so it can't hang below the last row.
Checkboxes use the modern Checkbox control. If your environment doesn't have it, set Selectable to false.
For very large tables with thousands of rows on screen, Microsoft's modern Data grid control virtualises its rows; this component draws the rows you give it, so page them.
0.2.1: the page now gives the data row limit's maximum as 10,000, as Microsoft Learn does. The component itself is unchanged.
0.2.0: motion: progress segments fill in, a highlight sweeps once across the loading rows, and the empty state's icon pops in (skipped for reduced motion); a Motion input turns it off. With Motion off, it's exactly 0.1.0.
0.1.0: first version: table, card and list views; Text, Strong, Badge and Progress columns; badge styles; sorting through OnSort; checkboxes and bulk actions; the row menu; loading and empty states; two densities.
Did it work for you?
2 ratings so far. The average shows from 3 ratings.Worked in 1 reader's app.
Sign in to rate it or to say it worked in your app.
Comments (1)
LowCodeStacks teamPinned
Welcome! A tip before you start: the table shows text, so turn numbers and dates into text in Rows, such as Text(DueDate, "mmm d"). And it draws every row you give it, so page big tables.
What are you showing in it: tasks, orders, requests? Tell us which view you use most (table, cards or list) and what's missing.
Dapper Gallery 193
This really easy to add. Awesome man! @LowCodeStacks