Home › Forums › WinForms controls › Xceed Grid for WinForms › Updating rows in a group › Reply To: Updating rows in a group
Try this:<code>’ In form load event:
AddHandler GridControl1.DataRowTemplate.Cells(“alias”).LeavingEdit, AddressOf Me.cell_Alias_LeavingEdit
‘ event handler:
Private Sub cell_Alias_LeavingEdit(ByVal sender As Object, ByVal e As LeavingEditEventArgs)
Dim cell As Cell = CType(sender, Cell)
Dim row As CellRow = cell.ParentRow
Dim dataRow As DataRow
Dim group As GroupBase = row.ParentGroup
If Not (group Is Nothing) Then
For Each dataRow In group.GetSortedDataRows(True)
If dataRow <> row Then
dataRow.Cells(“alias”).Value = e.NewValue
End If
Next
End If
End Sub</code>
Imported from legacy forums. Posted by Tommy (had 248 views)