Showing results for 
Search instead for 
Do you mean 

Keeping Parts Sorted in a Connection

I have a situation where I have a grid control displaying parts in a connection that is used for ordering the parts in the connection, among other things. The parts are gathered and sorted by a SortOrder property on the parts. On UI initialization, the grid displays the correct parts, and they sort correctly.

Dim colParts As New RsCollection
For Each oLoad As Object In Me.ToMyAssignedUILoads.Parts
	If oLoad.AssignedSuctionGroupID = CInt(Me.CIR_ShowLoads) Then
	End If
Next 'oLoad
colParts = SortObjectsByProperty(colParts, "SortOrder", False)
Result = colParts

Once I execute my MoveUp/MoveDown code, I need the grid control to re-sort based on sort order.

  • I've tried refreshing views at various times, but that's not re-sorting the grid/connection. 
  • I've tried to find a sort method on the connection that I can call after MoveUp/MoveDown, but I'm not finding one

Any other ideas?


I'm using 12.0.0