web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps header for G...
Power Apps
Answered

PowerApps header for Gallery control from SharePoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hy alll,

I have created a Table like structure using gallery control and displaying SharePoint List Data. Pic7.png

Now my query is I want to add the SharePoint list column name as the Gallery control header. I want header value should be dynamic. So that when we will change the Column name in our SharePoint list. Then it should reflect on the PowerApps Gallery control header. Is there any solution for that.

Best Regards,

Padmini

Categories:
  • Wonderkid73 Profile Picture
    10 on at
    I accomplished this for my requirement by doing the following which I thought was quite ingenious considering it worked for what I was trying to do:

    ClearCollect( MyLocalCollection, HeaderText1, HeaderText2 etc),
    Collect ( MyLocalCollection, SharePointList )

    The syntax probably isn’t the exactly correct as I’m reply on my phone and not actually checking the exact syntax I used, but that was the broader logic I used and it worked fine for me. I also managed to then make the header values in first row in the gallery bold, but I can’t offhand record exactly how.

    Happy to share more specifics should you need further help on this!
  • PranavShroti Profile Picture
    178 on at

    Hi,

     

    If you want datasource columns as well, then easiest way is to have a data table instead of gallery control.

     

    Hope this helps,

    Pranav

  • Wonderkid73 Profile Picture
    10 on at
    Hmmm, actually Pranav is likely more on the better track as I didn’t fully read the specific requirements.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ya I can use data table but problem is i need to add the control like button inside the Data Table which is very tuff.

    Thank you for reply.Smiley Happy

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I will follow your suggession.

    Thank you soo much for reply

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Based on the needs that you mentioned, I afraid that the Gallery control could not achieve your needs directly. As an alternative solution, I think the Data Table control could achieve your needs.

     

    If you want to add a Button control within the Data Table control, I afraid that there is no way to achieve your needs in PowerApps currently. As an alter native solution, you could add another column within your Data Table to act as a Button click option.

     

    I have made a test on my side, please take a try with the following workaround:3.JPG

     

    4.JPG

    Add a Data Table control within your app, set the Items property to following:

    AddColumns('YourSPList', "Action Operation", "Button Click")

    then enable the "Action Operation" column in your Data Table control.

    Select the "Action Operation" column in your Data Table control, then set the IsHyperlink property to true, then set the OnSelect property to following formula:

    "Type your Button Clickable formula here"

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thnq you I will follow your Approach.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard