Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

powerapp gallary

I am new to PowerApps and understood that Gallery is used to show list of records from collection. And for these collection one can choose from the predefined template (and template can be modifed with additional controls)


The individual controls can be made hidden or visible depending on items property value ( for eq. Status / Category).

(The collection of control is treated as data card - in case of Edit Form, per field there is datacard)


Would it be possible that, I can have different template ( data card) for Gallary depending on the items specific property.

For eq. 

If Status is "completed", then i can use data card(template) which is template1.

If Status is "pending" then I can use data card(template) which is template2.


(Something like in WCF , we have can have different template for one list view component and depending on items type specific template get used for displaying data).


Super User III
Super User III

Hi @rajesh_patil74


Yes, it's possible to display different data cards depending on the value of your 'status' field.


You can use an IF statement to conditionally show or hide cards, and the technique that you would use would be similar to the technique that's shown here.



Community Support
Community Support

Hi @rajesh_patil74,


You cannot have different template for the same gallery because Gallery use a template data card which is the first one to manage and work on the rest of it. But you can make this possible by setting the OnVisible property of the related controls. For example, you use the Image and Title Gallery layout , and set the OnVisible property of Image control inside the first data card to:


Notice that this will only make the image control invisible but there still will be a blank space there. I personally think that this is meaningless because even though you don't set this visible property, if there is no value in Picture column, the image control will be blank too.


If you really need to have different layout for each data card, maybe you could post this idea in the PowerApps Ideas forum, so it might be considered for future releases.




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



What I need to show is dynamic form (depending on "Type" column, different controls should be visible )

For eq. ( Label Single line TextBox) , (Label, Multiline TextBox),  (Label, 3 - 4 CheckBox), (Label - 3-4 Radio Buttons ) etc.


Placing all these controls and enable/disable them, i think will have a performance overhead, so expecting it would be nice to use the datacard depending on some field.


So one gallay component but depending on item type different template (datapart) will be used. ??


-- Posting the idea is new idea forum.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (63,734)