/// <summary> Constructor for a new instance of the Custom Grid class </summary>
        public CustomGrid_Panel()
        {
            selected_row_numbers = new SortedList();

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Create a new CustomGrid_Style object
            style = new CustomGrid_Style();

            // Create the visible column list
            create_visible_column_index_list();

            // Focus on the data panel
            dataPanel.Focus();

            // Create the double click timer
            doubleClickTimer = new Timer {Interval = style.Double_Click_Delay};
            doubleClickTimer.Tick+=double_click_timer_Tick;

            // Set the size of the select all button
            selectAllButton.Width = style.Row_Select_Button_Width + 1;
            selectAllButton.Height = style.Header_Height;

            // Add the listener for the Ctrl-C
            dataPanel.KeyDown += dataPanel_KeyDown;
        }
        // Listen for the Ctrl-C combination for copying selected rows into the clipboard
        /// <summary> Constructor for a new instance of the Custom Grid class </summary>
        public CustomGrid_Panel( DataTable thisTable )
        {
            selected_row_numbers = new SortedList();

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Create a new CustomGrid_Style object
            style = new CustomGrid_Style();

            // Save this datatable
            DataTable = thisTable;

            // Create the double click timer
            doubleClickTimer = new Timer {Interval = style.Double_Click_Delay};
            doubleClickTimer.Tick+=double_click_timer_Tick;

            // Set the size of the select all button
            selectAllButton.Width = style.Row_Select_Button_Width + 1;
            selectAllButton.Height = style.Header_Height;

            // Add the listener for the Ctrl-C
            dataPanel.KeyDown += new KeyEventHandler(dataPanel_KeyDown );
            dataPanel.KeyPress += new KeyPressEventHandler(dataPanel_KeyPress);
        }