Format:
Recent snippets matching tags of sorting
public class GenericComparer<T> : IComparer<T> { public List<Tuple<string, bool>> Comparisons { get; set; } public int Compare(T x, T y) { int returnValue = 0; IComparable xval; IComparable yval;
210 Views
no comments
Lparameters toColumn Local laControlSource[1], lcAlias, lcControlSource, lcControlSourceTest, lcField, lcPicture Local lcSortDirection, lnSelect, loHeader Dimension laControlSource[1] If Type('toColumn.sorting_header') <> 'O' Return Endif
739 Views
no comments
/// <summary> /// Sorts the list box in descending order /// </summary> /// <param name="pList">the list to sort</param> /// <param name="pByValue">Sort the list by values or text</param> private void SortListBox(ref ListBox pList, bool pByValue) { var lListItems = new System.Collections.SortedList(); //add listbox items to SortedList
1865 Views
no comments
/// <summary> /// Sorts the dropdownlist in descending order /// </summary> /// <param name="objDDL"></param> private void SortDropDownList(ref DropDownList objDDL) { var textList = new ArrayList(); var valueList = new ArrayList(); foreach (ListItem li in objDDL.Items)
496 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
