Private Sub DataGridView1_DataBindingComplete(sender As Object, e As DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete Dim i As Integer = 0 Dim mtCell As Integer = 0 For Each row As DataGridViewRow In DataGridView1.Rows For j = 1 To row.Cells.Count -2 If row.Cells(j).Value Is DBNull.Value Then mtCell += 1 End If Next If mtCell = row.Cells.Count Then DataGridView1.Rows.RemoveAt(i) End If i += 1 mtCell = 0 Next end sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)