Dim selectedRowCount As Integer = frmData.DataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected) If selectedRowCount > 0 Then Dim i As Integer For i = 0 To selectedRowCount - 1 ListView1.Items.Add(CInt(frmData.DataGridView1.SelectedRows(i).Cells(0).Value)) Next i ListView1.Sorting = SortOrder.Ascending End If
10
4
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)