OrderByOn = False

C

Chris K

Is it good practice to switch OrderByOn = false before setting new value for
OrderBy e.g.

OrderByOn = False
OrderBy = MyOrder
OrderByOn = True
Requery
 
A

Allen Browne

No need.

I would, however, recommend explicitly saving any edits before doing
anything that requires an implicit save.
 
D

David W. Fenton

Is it good practice to switch OrderByOn = false before setting new
value for OrderBy e.g.

OrderByOn = False
OrderBy = MyOrder
OrderByOn = True
Requery

The Requery is entirely unnecessary, as setting the OrderByOn
property automatically does it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top