//******************************************************* // // SortGridData methods sorts the Issues Grid based on which // sort field is being selected. Also does reverse sorting based on the boolean. // //******************************************************* private void SortGridData(ITUserCollection list, string sortField, bool asc) { ITUserCollection.UserFields sortCol = ITUserCollection.UserFields.InitValue; switch (sortField) { case "Username": sortCol = ITUserCollection.UserFields.Username; break; case "DisplayName": sortCol = ITUserCollection.UserFields.DisplayName; break; case "RoleName": sortCol = ITUserCollection.UserFields.RoleName; break; } list.Sort(sortCol, asc); }