//////////////////////////////////////////////////////////////////////////// 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; } }
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]; } }