Exemple #1
0
        private void ListViewConfig(TreeListView olv)
        {
            olv.View               = View.Details;
            olv.FullRowSelect      = true;
            olv.GridLines          = true;
            olv.AllowColumnReorder = false;
            olv.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
            olv.HideSelection         = false;
            olv.UseFiltering          = true;
            olv.HeaderStyle           = ColumnHeaderStyle.Clickable;
            olv.ShowItemToolTips      = true;
            olv.HeaderWordWrap        = true;
            olv.UseHotItem            = true;
            olv.UseTranslucentHotItem = true;
            olv.HeaderMaximumHeight   = 80;
            olv.HeaderMinimumHeight   = 50;
            HeaderFormatStyle HeaderStyle = new HeaderFormatStyle();

            HeaderStyle.SetFont(new Font(olv.Font.FontFamily, olv.Font.Size, FontStyle.Bold));
            olv.HeaderFormatStyle = HeaderStyle;
        }