I saw this listview from one of your videos and now I have the need to incorporate this grouping feature in one of my listview.
I looked in the forum and the help file and could not find any info about how to do this. Could you please post some sample code on how to accomplish this grouping display in the listview?
Just to get you going, use your ListView RowPopulating Event to set e.UseGroup to True. Then you set the e.GroupHeaderText to the Group you want and it should work. Something like:
Private Sub MyListView_RowPopulating(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.RowPopulatingEventArgs) _ Handles MyListView.RowPopulating
With CType(e.BusinessObject, MyBO) '-- Set Columns e.Values(0).DisplayValue = Something e.Values(1).DisplayValue = SomethingElse
e.UseGroup = True
Select Case .myField Case SomeCondition1 e.GroupHeaderText = "Group1"
'-- here you can even set an image, for example from a ImageListControl e.ImageIndex = 1
Case SomeCondition2 e.GroupHeaderText = "Group2" e.ImageIndex = 2
Case SomeCondition3 e.GroupHeaderText = "Group3" e.ImageIndex = 3
Case SomeCondition4 e.GroupHeaderText = "Group4" e.ImageIndex = 4
Case Else e.GroupHeaderText = "Not Defined" e.ImageIndex = 5 End Select
End With End Sub
So if you are trying to sort, you could include this as part of a BO sort or part of a query sort. Hope that makes sense.