Use explicit columns when you need stable labels or custom rendering. Automatic columns are useful for quickly exploring a dataset. Keep formatting separate from the underlying data values.
Auto Generated Columns source
Custom Cells source
The custom-cell examples connect row actions to application state. Edit a product name, save it, delete the row, or restore the original products. The renderer and template-slot versions use the same interaction so you can compare the two APIs.