none
Bagaimana cara memindahkan data dari listiview ke datagrid pada VB6

Semua Balasan

  •  If Not ListView1.SelectedItems.Count = 0 Then 
             '// check if item is selected. 
            With ListView1.SelectedItems(0) 
                Dim lvItem() As String = {.Text, .SubItems(1).Text, .SubItems(2).Text} 
                '// get ListView selectedItem. 
    
                'Assumed that TableDGV as your DGV datasource
    
                TableDGV.Rows.Add(lvItem) '// add it to DataGridView. 
                DataGridView1.DataSource = TableDGV
    
    
            End With 
        End If 


    03 Agustus 2017 2:10