
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.
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.