Not quite:
VB Code:
  1. dgvMaterial_Inventory.Rows.Clear()
Having said that, if your grid is bound to a DataTable or some other DataSource then you need to clear it, not the grid.