It is simple in Winform. How to simply do it in WPF?
Code:For Each DRow As DataGridViewRow In Datagrid1.SelectedRows Dim ClnRow As DataGridViewRow = CType(DRow.Clone(), DataGridViewRow) For i As Int32 = 0 To DRow.Cells.Count 'can decide how many cells will be copied ClnRow.Cells(i).Value = DRow.Cells(i).Value Next datagird2.Rows.Add(ClnRow) Next




Reply With Quote
