Order records in a maintenance form


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

I have a curious situation. I have a table for families, the BO has this method:

Public Sub FillAllRecords()

Me.FillDataTable("SELECT * FROM Familias ORDER BY Apellidos")

End Sub

I add three records, one begin with H, second with D and las one with A. Every time I load the maintenance form, goes to the second record in this case the one beginning with D, the order is correct, the first record is the one with A but I can not understand why goes to the second one.

Regards

Smile Everything is possible, just keep trying...

Replies
Alex Luyando
Alex Luyando
StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
Trent L. Taylor (07/30/2008)
You can actually find your answer to this throughout the forum....




I never was able to find lots of Easter Eggs buried in the sand either... I give up! Where can I find the answer?



I understand the RowIndex is causing my toolstrip's navigate buttons to cause the highlighted row in my listview and the other bound controls to "jump" in a sequence that is not expected based on the current sort order of the BO's datatable (i.e., the listview's rows are not sequentially navigated), but have not found how to handle this... only quite a few "yeah.. it's posted out here elsewhere" replies Sad



It's probably right in front of me, but...



TIA

________________
_____/ Regards,
____/ al
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Alex, I guess I don't understand your problem.  Your problem could be happening for a lot of reasons, and I don't think I have enough information to give you an answer.  Are you using the fully automated population of the ListView including the management of the Add, Edit, Delete buttons?  Or are the buttons you are referring to a MaintenanceFormToolstrip?  What is changing...when you select a ListView item the toolstrip is updated or when you navigate the ListView selected index is changing?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Juan Carlos Pazos - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Juan Carlos Pazos - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                     Hi

Just found the solution:

Private Sub...
Juan Carlos Pazos - 17 Years Ago
                         Hi Juan Carlos, Try putting the Navigate() command in the...
Edhy Rijo - 17 Years Ago
                             This is a re-producible issue that I showed Ben on the last day of...
Randy Jean - 17 Years Ago
                                 Actually, a movefirst is what we want instead of navigate, I believe....
Randy Jean - 17 Years Ago
Alex Luyando - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Dustin Taylor - 17 Years Ago
Randy Jean - 17 Years Ago
Greg McGuffey - 17 Years Ago
                     In BusinessLayer.Events.VB

[codesnippet]
'''...
Randy Jean - 17 Years Ago
                         GladI found this post, I have been trying to figure out why a weekly...
Paul Chase - 17 Years Ago
                             Ok now that I know what is happening I really urgentlyhave to fix it...
Paul Chase - 17 Years Ago
                                 Any ideas?
Paul Chase - 17 Years Ago
                                     Is there a difference between the source posted in the user accounts...
Paul Chase - 17 Years Ago
                                         Well asI thought that was to good to be true :) I guessI must...
Paul Chase - 17 Years Ago
                                             Fixed...creating a new build as we speak and will post it within the...
Trent L. Taylor - 17 Years Ago
                                                 Here is the fix: http://forum.strataframe.net/FindPost18786.aspx
Trent L. Taylor - 17 Years Ago
                                                     Thank'sa bunch Trent
Paul Chase - 17 Years Ago
                                                         Sure :) Sorry for the trouble!
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search