Ahoj chci se zeptat jestli se nejak da vyhledavat v datagridview,nasel sem todle a to funguje ale nevim jak mam ostatni radky odstranit. Tady je kod:
Dim x As Integer = 0
While x < DataGridView1.Rows.Count
Dim y As Integer = 0
While y < DataGridView1.Rows(x).Cells.Count
Dim c As DataGridViewCell = DataGridView1.Rows(x).Cells(y)
If Not c.Value Is DBNull.Value Or Nothing Then
If CType(c.Value, String) = textbox1.text Then
MessageBox.Show("Found!")
End If
End If
System.Math.Min(System.Threading.Interlocked.Increment(y), y - 1)
End While
System.Math.Min(System.Threading.Interlocked.Increment(x), x - 1)
End While
MessageBox.Show("Search complete!")
Muzete mi teda poradit jak se daj odstranit radky ktery neobsahujou vyhledavany slovo? Dik
|