Non so qual è la sintassi per lo svuotamento di un datagridview. Per favore aiutami qui è il mio codice.Come svuotare un datagridview?
if (cboProduct.SelectedIndex != -1)
load_variant();
else
//empty the datagridview
cboProduct.SelectedIndex = -1;
+1 per 'Rows.Clear()' – Habib
C'è un errore, 'non può cancellare questo list' – Harvey
@Harvey ha provate con RemoveAt? – Damith