Here comes the trouble. I want to delete all rows from datagridview. This how i add rows:
private void ReadCompleteCallback(object clientHandle, Opc.Da.ItemV
Try this Code
private void button_Click(object sender, EventArgs e) { if (this.dgInv.DataSource != null) { this.dgInv.DataSource = null; } else { this.dgInv.Rows.Clear(); } }