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 Gallery is d...
Power Apps
Answered

PowerApps Gallery is displaying first row value for all the rows by default

(0) ShareShare
ReportReport
Posted on by 559

Hi All,

I have a PowerApps editable grid gallery which loads the data using the collection. I have a "+" icon which generates row based on the ID. There are two columns Phase and Work Product which is of type Single line of text. When the gallery is in Edit mode there will be dropdown visible for Phase and Work Product where we can select the select the values in the dropdown. When the gallery is in View mode there will a text input box which will be visible to display the Dropdown selected value. When I add two rows and select the dropdown values it is taking proper values and try to add a new row and click the cancel icon the gallery goes to the View mode which is displaying the first-row value of Phase and Work Product in the newly selected row by default. 

I have attached screenshot for the same.

 

Any help on this will be greatly appreciated.

Thanks in Advance.

 

Screenshot (36)_1.png
Screenshot (37)_1.png
Categories:
I have the same question (0)
  • Verified answer
    cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    Hello @Uthhra ,

    I'll have a go at trying to help, though may need more information.

    Firstly, you can achieve what you need to with just the drop down control. Rather than having the dropdown for Edit and Text box for New, simply update the DisplayMode property of the dropdown box. My example assumes use of a boolean variable:

    If(
     gvEditMode,
     DisplayMode.Edit,
     DisplayMode.View)

     Then it's a case of making sure the Default property of the dropdown references ThisItem and the relevant field, ie ThisItem.Phase.

    If the above doesn't help, perhaps you could share snippets of your code, for example what is running when changing modes, the code for adding a new record, etc.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard