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 / Delete specific cell f...
Power Apps
Answered

Delete specific cell from collection row.

(0) ShareShare
ReportReport
Posted on by 88

Is it possible to delete just specific cells from a collection row.  So for example, I have the below gallery with a button at the end of each row. I want to be able to click on the button for the specific row and delete the "ID" an "Name" cell content for that row.  Ideally with a confirmation pop up confirm that they want to delete the item. That said, I can post that in another question.

 

CityCountryIDName
LondonEnglandT3733James Smith
ParisFranceX4637Clive Vincent

 

 

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    I have never encountered a situation where i have to delete specific cell. But, i think you can do it with patch.

    Using patch to update that specific field with "Blank()"

  • DarkStranger Profile Picture
    88 on at

    I did try adjust my patching code that added data to the "ID" and "Name" cells to the below...

     

    Remove(PatchingInventory, ThisItem,
    {
    Floor_x0020_Port_x0020_No_x002e_: Floor_Port_No_Gallery_Input_2.Text,
    Equipment_x0020_Type:Equipment_Type_Gallery_Input_2.Selected.Value,
    Comments: Comment_Gallery_Input_2.Text
    }
    )

     

    But is seems to delete the whole row.

     

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Remove will delete the whole row. I am saying think of it as updating that field with another value. And that value is blank.

    Insert a button. Butoon>OnClick:

     

    Patch(PatchingInventory, ThisItem,
    {
    Floor_x0020_Port_x0020_No_x002e_: Blank(),
    Equipment_x0020_Type:Equipment_Type_Gallery_Input_2.Selected.Value,
    Comments:Blank()
    }
    )

    This will remove comment and Floor Port no of that field but not equipment type. Understand?

    Haven't tried it myself. But it should work.

  • Verified answer
    DarkStranger Profile Picture
    88 on at

    I figured it it, just patch "".

     

    UpdateContext({EditRecord:Blank()});
    Patch(
    PatchingInventory, ThisItem,
    {
    Floor_x0020_Port_x0020_No_x002e_: "",
    Equipment_x0020_Type: "",
    Comments: ""
    }
    )

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Click Accept as Solution to Close the thread if it is solved.

  • DarkStranger Profile Picture
    88 on at

    @zmansuri sorry, missed your response, but figured it out.

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Glad it worked out for you.

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard