日期:2008-11-19  浏览次数:20606 次

using System;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;
using System.Windows.Forms;
using System.Drawing;

namespace ListViewControl
{
    /// <summary>
    /// Summary description for UserControl1.
    /// </summary>
    public class EastSpider : System.Windows.Forms.ListView
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        ///
        private Comparer myComparer;
        private ArrayList colTypes = new ArrayList();

        private System.ComponentModel.Container components = null;

        /// <summary>
        /// Sort Interface
        /// </summary>

        public class Comparer : IComparer
        {
            private int column;
            private int sign;
            private EastSpider.ColumnTypeEnum colType;

            public Comparer()
            {
                column = 0;
                sign = 1;
                colType = EastSpider.ColumnTypeEnum.ColumnTypeText;
            }

            public int Column
            {
                set
                {
                    column = value;
                }
                get
                {
                    return column;
                }
            }

            public int Sign
            {
                set
                {
              &nb