I have a datagrid on my form that I populate from a Access database and I recently got some code from EE to combine rows with each other and also combine the text of that rows with each other. But this only works for the first column, and only if it is a text value. What I actually want to do is plus the other rows as well, witch are integers, and when I combine 2 rows it must delete one of the rows. Can any one please help me out here or give me some sample code or refer me to a useful website. Any help would be greatly appreciated
Thanx in advance
Dim result As String = String.Empty
If (DataGridView1.SelectedCells.Count > 1) Then
For Each cell As DataGridViewCell In Me.DataGridView1.SelectedCells
result &= cell.Value.ToString & " & "
result = result.Remove(result.Length - 2)
Me.DataGridView1.SelectedCells(0).Value = result.ToString()