예제 #1
0
 ////////////////////////////////////////////////////////////////////////////       
 private void FormatHeaders(Header _header)
 {
     for (int i = 0; i < _header.ColumnCount; i++)
     {
         _header.HeaderButtons[i].Left = pane.Left + (i * _header.HeaderButtons[i].Width);
         //_header.HeaderButtons[i].Top = pane.Top;
     }
 }
예제 #2
0
        private void CreateHeaders(string[] _headers, int _width)
        {
            int headerwidth = _width / _headers.Length;
            Headers = new Header(Manager, _headers.Length, _width+5);

            for(int i = 0;i<_headers.Length;i++)
            {
                Headers.HeaderButtons[i].Text = _headers[i];
            }
        }