CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of sorting
C#
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;
        
by JamesEggers   April 28, 2010 @ 8:30am
Tags: C#, Sorting
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
by Matt Slay   January 28, 2010 @ 1:07pm
739 Views
no comments
 
C#
/// <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 
by Abhilash   November 13, 2009 @ 4:03am
1865 Views
no comments
 
C#
/// <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)
by Abhilash   November 13, 2009 @ 4:03am
496 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate