09-11-2009 10:48 AM
when I call:
Dim cl as contact list
cl= app.ApplicationState.CurrentContactList
The order of the contacts as I iterate through them isn't the same as what's displayed on the screen. (Neither are CurrentCompanyList and CurrentGroupList apparently) Is there anyway to get them in the same sort order?
TIA
Mike Fortier
Fortier Consulting, LLC
09-11-2009 12:11 PM
So, I think there are two things going on here. First, at least on my v11 ACT, the Contact List is default sorted by Company (i.e. when I first click on the Contact List icon).
Second, programatically, you could use the sort method:
Public Sub Sort(ByVal sortCriteria() As Act.Shared.Collections.SortCriteria)
Member of Act.Shared.Collections.DataList(Of T)
and sort by Company - wouldn't that do it?
09-11-2009 12:46 PM
09-15-2009 01:57 AM
Hi Mike,
the ContactList object has a get member SortCriteria which returns an array of the current ContactList's SortCriteria.
SortCriteria[] sCArray = cl.SortCriteria;
foreach(SortCriteria sC in sCArray)
{
MessageBox.Show(sC.Property.Name);
}
HTH
Vivek