Sometimes you get “Cannot clear this list” when trying to clear a DataGridView using the Clear() method. If you get Cannot clear this list, that’s typically because the DataGridView is connected to a datasource. Try clearing the datasource instead, or disconnect the datasource from the DataGridView.