Skip to main content

AccessTr.neT


Vb.net Datagridview Mükerrerleri Teke Düşürme.

Vb.net Datagridview Mükerrerleri Teke Düşürme.

#2
Kod:
Buton 1 kodlarını bunlarla değiştiriniz.

      Dim satır = DataGridView1.Rows.Count - 1
       Dim x As Integer = 0
       While x < satır - 2
           For y As Integer = (satır - 2) To (x + 1) Step -1
               If DataGridView1.Rows(x).Cells(0).Value.ToString() = DataGridView1.Rows(y).Cells(0).Value.ToString() Then
                   DataGridView1.Rows.Remove(DataGridView1.Rows(y))
                   satır -= 1
               End If
           Next
           x += 1
       End While

Son Düzenleme: 01/05/2017, 22:04, Düzenleyen: alican60.
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: Vb.net Datagridview Mükerrerleri Teke Düşürme. - Yazar: alican60 - 01/05/2017, 22:03