Sorting problem with ListView


Author
Message
Doron Farber
Doron Farber
StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)
Group: Forum Members
Posts: 92, Visits: 612
Hi Trent,

I am using code like the below in the Load event to sort the first column of the ListView:
Me.dSearchCategoriesBO1.Sort = "DisplayOptionOrder"

But that is causing a problem when I click the Add button within that ListView. It comes as an Edit mode and shows me the current record in the ListView. I cancelled that and click again the Add button and then it works fine. The work around this problem was when I entered the following within this event: lstSearchCategories_BeforeChildFormExecuted as this one:
If e.Action = MicroFour.StrataFrame.UI.ListViewChildFormAction.Add Then
Me.GrandChildSearchCategoriesBO1.Sort = ""

End If

End Sub



Then in the ListView ChildFormResults event I entered this code:
Me.dSearchCategoriesBO1.Sort = "DisplayOptionOrder"


 


 

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search