Choose the first 3 repeated elements in the matrix

  • Thread starter Thread starter ahmeddc
  • Start date Start date
A

ahmeddc

Guest
HI


I want to choose the first 3 repeated elements inside the matrix with the following condition:


Each non-repeating row is determined automatically.

The first 3 duplicate rows are selected and the rest of the duplicate rows are deleted, where the named cell “hide” equal same cell “hide” and the named cell “pr” equal the “pr” for the same row.

image datagridview

1617691.png


list array data

Dim f_c_productList = New List(Of ProductItem)


For index = 0 To f_c_productList.Count - 1
' name = na column , discount = ds column , Price = pr column ,company = filename column ,hiden_name = hide column
DATAG_CLIEN.Rows.Add(f_c_productList(index).Name, f_c_productList(index).Discount, f_c_productList(index).Price, f_c_productList(index).company, f_c_productList(index).hiden_name)

Next

Continue reading...
 
Back
Top