Para Limpiar un datagridview en .net vb
Public Sub Limpiar_Grilla(ByRef Grilla As DataGridView, _
ByRef Fila As Integer)
Dim Fil As Integer
With Grilla
For Fil = .Rows.Count - 1 To Fila Step -1
.CurrentCell = .Rows(Fil).Cells(1)
.Rows.Remove(.CurrentRow)
Next
End With
End Sub
|