cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kaswiere
Microsoft
Microsoft

Refresh Data Table

I have a data table that is filtered based on data entered in a Search text box. If no data is entered in the text box all the data from the data source is shown.  When data is entered the data table is filtered based on that data.  The data table Items property is set to Search(datasource, TextBox.Text, col1, col2, col3).  

 

Users can delete rows from this data table.  When they do I want to clear out the Text box and refresh the data table.  Since the text box is cleared, all the data from the data source should appear in the data table.  I do a Reset to clear the TextBox.  When I do the reset, it clears out the data table and doesn't show any data.  After the reset I want the data table to show all the rows in the data source like it does when the Text box is empty when the data table is first display.

 

Any ideas on how to do this?

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @kaswiere ,

What is the Items property of your gallery?

kaswiere
Microsoft
Microsoft

I am using a DataTable, not a gallery.  The data table Items property is set to Search(datasource, TextBox.Text, col1, col2, col3).  

Hi @kaswiere ,

These controls (Data Tables) behave quite differently to galleries and there are a lot of things that are not possible to do in them (which are easily done in a gallery). I suspect this is just another example.

WarrenBelz
Super User
Super User

Hi @kaswiere ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,996)