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
Prachi Agrawal 25Prachi Agrawal 25 

Hi experts, how to add row and delete rows in salesforce lightning datatable as web component? For both delete and add I want the operation to be handled directly in datable component, is it possible ?t

VinayVinay (Salesforce Developers) 
Hi Prachi,

Check below example that can help you.

https://salesforcediaries.com/2020/06/11/adding-or-removing-rows-dynamically-in-lightning-web-component/

Please mark as Best Answer if above information was helpful.

Thanks,