function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Athira VenugopalAthira Venugopal 

Is there any way to refresh the lightning:datatable

I am using the lightning:datatable for my custom object. Is there any way to refresh the lightning:datatable after adding some data into it.
AbhishekAbhishek (Salesforce Developers) 
Yes.

The below blog has a code snippet try it.

https://developer.salesforce.com/forums/?id=9062I000000IMcGQAW

For further reference, you can check this too (https://stackoverflow.com/questions/56796657/lwc-how-would-i-refresh-the-data-of-a-lightning-datatable-after-a-new-record-is).

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
Athira VenugopalAthira Venugopal
Hi abhishek, I have tried this , but the datatable is not getting refreshed
Pls check this:
https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IQWlQAO#stq=saura&stp=1
AbhishekAbhishek (Salesforce Developers) 
Try the code as mentioned in the above blog.