private void fastBarcodes_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { try { FastObjectListView fastBarcodes = sender as FastObjectListView; if (fastBarcodes.SelectedObject != null) { CartonDTO cartonDTO = null; PalletDTO palletDTO = null; if (sender.Equals(this.fastCartons)) { cartonDTO = fastBarcodes.SelectedObject as CartonDTO; } if (sender.Equals(this.fastPallets)) { palletDTO = fastBarcodes.SelectedObject as PalletDTO; } if (cartonDTO != null || palletDTO != null) { QuickView quickView = new QuickView(this.scannerAPIs.GetBarcodeList((GlobalVariables.FillingLine)(cartonDTO != null ? cartonDTO.FillingLineID : palletDTO.FillingLineID), cartonDTO != null ? cartonDTO.CartonID : 0, palletDTO != null ? palletDTO.PalletID : 0), cartonDTO != null ? "Carton: " + cartonDTO.Code : "Pallet: " + palletDTO.Code); quickView.ShowDialog(); quickView.Dispose(); } } } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } } }
public static void UpdateFOLV(ref FastObjectListView olv, IEnumerable Collection, bool ResizeCols = false) { olv.Freeze(); try { olv.ClearObjects(); olv.SetObjects(Collection, true); //update column size only if did not restore folv state file or forced if (olv.Tag == null || ResizeCols) { olv.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); } if (olv.Items.Count == 0) { olv.EmptyListMsg = "Empty"; } } catch (Exception ex) { Global.Log("Error: " + Global.ExMsg(ex)); } finally { olv.Unfreeze(); } }
public static void ExportFOlvToHtml(FastObjectListView olv, String fileName) { OLVExporter exporter = new OLVExporter(olv); String html = exporter.ExportTo(OLVExporter.ExportFormat.HTML); File.WriteAllText(fileName, html); }
/// <summary> /// Resizes the event list's columns /// </summary> public static void ResizeEventListColumns(FastObjectListView list, bool hasSignatureColumn) { if (list.Items.Count == 0) { list.BeginUpdate(); foreach (ColumnHeader column in list.Columns) { column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); } list.EndUpdate(); } else { list.BeginUpdate(); list.Columns[(int)Global.FieldsEvent.SrcIp].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.SrcPort].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.DstIp].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.DstPort].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.Host].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.Protocol].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.Timestamp].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.Classification].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); list.Columns[(int)Global.FieldsEvent.Initials].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); if (hasSignatureColumn == true) { list.Columns[(int)Global.FieldsEvent.Payload].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); } list.EndUpdate(); } }
private void InitializeDataListView(FastObjectListView olv) { olv.UseAlternatingBackColors = true; olv.AlternateRowBackColor = Color.Bisque; olv.ShowItemCountOnGroups = true; olv.OwnerDraw = true; // Zonder dit attribuut werden de checkboxes niet getekend maar kwam er True/False te staan. olv.FullRowSelect = true; //olv.CheckBoxes = true; olv.CellEditActivation = FastObjectListView.CellEditActivateMode.DoubleClick; olv.UseFiltering = true; olv.UseFilterIndicator = true; olv.GroupWithItemCountFormat = "{0} ({1} Leden)"; olv.GroupWithItemCountSingularFormat = "{0} ({1} Lid)"; olv.HeaderWordWrap = true; olv.View = System.Windows.Forms.View.Details; olv.ShowGroups = false; olv.EmptyListMsg = "This list is empty."; olv.AddDecoration(new EditingCellBorderDecoration(true)); olv.UseSubItemCheckBoxes = true; // Make the tooltips look somewhat different //olv.CellToolTip.BackColor = Color.Black; //olv.CellToolTip.ForeColor = Color.AntiqueWhite; //olv.HeaderToolTip.BackColor = Color.AntiqueWhite; //olv.HeaderToolTip.ForeColor = Color.Black; //olv.HeaderToolTip.IsBalloon = true; }
public static void SetTextBoxAndFastListView(TextBox tx, FastObjectListView lv, UserControl control) { tx.Location = new System.Drawing.Point(0, 0); lv.Height = control.Height - tx.Height; control.Resize += delegate { lv.Height = control.Height - tx.Height; }; }
public static void FilterFOLV(FastObjectListView OLV, string FilterText, bool Filter) { using var cw = new Global_GUI.CursorWait(); try { if (!string.IsNullOrEmpty(FilterText)) { if (Filter) { OLV.UseFiltering = true; } else { OLV.UseFiltering = false; } TextMatchFilter filter = TextMatchFilter.Regex(OLV, FilterText); OLV.ModelFilter = filter; HighlightTextRenderer renderererer = new HighlightTextRenderer(filter); SolidBrush brush = renderererer.FillBrush as SolidBrush ?? new SolidBrush(Color.Transparent); brush.Color = System.Drawing.Color.FromArgb(100, Color.LightSeaGreen); // renderererer.FillBrush = brush; OLV.DefaultRenderer = renderererer; Global.SaveRegSetting("SearchText", FilterText); } else { OLV.ModelFilter = null; } OLV.Refresh(); //Application.DoEvents(); } catch { } }
public static void ExportFOlvToCsv(FastObjectListView olv, String fileName) { OLVExporter exporter = new OLVExporter(olv); String csv = exporter.ExportTo(OLVExporter.ExportFormat.CSV); File.WriteAllText(fileName, csv); }
private void fastBarcodes_DoubleClick(object sender, EventArgs e) { try { FastObjectListView fastBarcodes = sender as FastObjectListView; if (fastBarcodes.SelectedObject != null) { BarcodeDTO barcodeDTO = fastBarcodes.SelectedObject as BarcodeDTO; if (barcodeDTO != null) { if (true) { WebapiGettsa webapiGettsa = new WebapiGettsa(barcodeDTO.Label); webapiGettsa.ShowDialog(); webapiGettsa.Dispose(); } else { PrintViewModel printViewModel = new PrintViewModel(); printViewModel.ReportPath = "SearchBarcode"; printViewModel.ReportParameters.Add(new Microsoft.Reporting.WinForms.ReportParameter("Barcode", barcodeDTO.Code)); SsrsViewer ssrsViewer = new SsrsViewer(printViewModel); ssrsViewer.Show(); } } } } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
void Filter(FastObjectListView olv, string txt, int matchKind) { olv.OwnerDraw = true; TextMatchFilter filter = null; if (!String.IsNullOrEmpty(txt)) { switch (matchKind) { case 0: default: filter = TextMatchFilter.Contains(olv, txt); break; case 1: filter = TextMatchFilter.Prefix(olv, txt); break; case 2: filter = TextMatchFilter.Regex(olv, txt); break; } } // Setup a default renderer to draw the filter matches if (filter == null) { olv.DefaultRenderer = null; olv.ModelFilter = null; } else { olv.DefaultRenderer = new HighlightTextRenderer(filter); olv.ModelFilter = filter; // Uncomment this line to see how the GDI+ rendering looks //olv.DefaultRenderer = new HighlightTextRenderer { Filter = filter, UseGdiTextRendering = false }; } // Some lists have renderers already installed HighlightTextRenderer highlightingRenderer = olv.GetColumn(0).Renderer as HighlightTextRenderer; if (highlightingRenderer != null) { highlightingRenderer.Filter = filter; } IList objects = olv.Objects as IList; if ((objects == null) || (objects.Count == olv.Items.Count)) { this.toolStripStatusLabel1.Text = string.Empty; } else { this.toolStripStatusLabel1.Text = String.Format("Filtered {0} items down to {1} items", objects.Count, olv.Items.Count); } }
public void ExportOlvToReport(FastObjectListView olv) { ListViewPrinter lvp = new ListViewPrinter { ListView = olv }; lvp.PrintPreview(); }
public Tags(Form form, Label statusLabel, FastObjectListView fastObjectListView, Panel searchPanel, TextBox searchTextBox, ProgressBar progressbar) { this.Form = form; this.StatusLabel = statusLabel; this.FastObjectListView = fastObjectListView; this.SearchPanel = searchPanel; this.SearchTextBox = searchTextBox; this.Progressbar = progressbar; }
public void ExportOlvToHtml(FastObjectListView olv) { String fileName = GetHtmlFileName(); if (fileName != "") { FileUtils.ExportFOlvToHtml(olv, fileName); } }
public static void InitFastObjectListView(FastObjectListView lv, System.Windows.Forms.TextBox filterBox) { lv.UseFiltering = true; lv.UseAlternatingBackColors = true; lv.AlternateRowBackColor = alternateRowBackColor; lv.Font = objectListViewFont; lv.FullRowSelect = true; filterBox.TextChanged += delegate { lv.ModelFilter = TextMatchFilter.Contains(lv, filterBox.Text); }; }
public static bool FOLVSaveState(FastObjectListView FOLV) { bool ret = false; try { FOLVObjectListViewState olvState = new FOLVObjectListViewState(); olvState.VersionNumber = 1; olvState.NumberOfColumns = FOLV.AllColumns.Count; // FOLV.AllColumns.Count olvState.CurrentView = FOLV.View; // If we have a sort column, it is possible that it is not currently being shown, in which // case, it's Index will be -1. So we calculate its index directly. Technically, the sort // column does not even have to a member of AllColumns, in which case IndexOf will return -1, // which is works fine since we have no way of restoring such a column anyway. if (FOLV.PrimarySortColumn != null) { olvState.SortColumn = FOLV.AllColumns.IndexOf(FOLV.PrimarySortColumn);// FOLV.AllColumns.IndexOf(FOLV.PrimarySortColumn) } olvState.LastSortOrder = FOLV.PrimarySortOrder; olvState.IsShowingGroups = FOLV.ShowGroups; // If FOLV.Columns.Count > 0 AndAlso FOLV.Columns(0).LastDisplayIndex = -1 Then 'FOLV.AllColumns(0).LastDisplayIndex = -1 // 'FOLV.RememberDisplayIndicies() // End If if (FOLV.Columns.Count == 0) { Log("Error: No columns to save?"); return(false); } foreach (OLVColumn column in FOLV.AllColumns) // FOLV.AllColumns { olvState.ColumnIsVisible.Add(column.IsVisible); olvState.ColumnDisplayIndicies.Add(column.LastDisplayIndex); olvState.ColumnWidths.Add(column.Width); } // Now that we have stored our state, save to json string Filename = Path.Combine(Path.GetDirectoryName(AppSettings.Settings.SettingsFileName), $"ListSaveState-{FOLV.Name}.JSON"); string json = Global.WriteToJsonFile <FOLVObjectListViewState>(Filename, olvState); if (json != null && !string.IsNullOrEmpty(json)) { ret = true; } } catch (Exception ex) { Log("Error: " + ex.Msg()); } return(ret); }
public frmPrintObjectListView(FastObjectListView olv, string header) { InitializeComponent(); param = new tblParameters(); objListView = olv; listViewPrinter1.ListView = olv; tbHeader.Text = @"\t" + header; tbFooter.Text = @"{1:f}\t" + param.ClubNameShort + @"\tPagina #{0}"; tbWatermark.Text = string.Empty; }
internal void editToolStripMenuItem_Click(object sender, EventArgs e) { if (!(_olvSelectedListItem is null)) { ToolStripItem x = (ToolStripItem)sender; ContextMenuStrip c = (ContextMenuStrip)x.Owner; FastObjectListView f = (FastObjectListView)c.SourceControl; f.EditSubItem(_olvSelectedListItem, _olvSelectedSubItemIndex); } }
private void fastPendingList_MouseDoubleClick(object sender, MouseEventArgs e) { try { FastObjectListView fastPendingList = this.customTabBatch.SelectedIndex == 0 ? this.fastPendingPallets : (this.customTabBatch.SelectedIndex == 1 ? this.fastPendingCartons : null); if (this.warehouseAdjustmentViewModel.WarehouseAdjustmentTypeID == (int)GlobalEnums.WarehouseAdjustmentTypeID.ChangeBinLocation && fastPendingList.SelectedObject != null) { if (fastPendingList != null && fastPendingList.SelectedObject != null) { GoodsReceiptDetailAvailable goodsReceiptDetailAvailable = (GoodsReceiptDetailAvailable)fastPendingList.SelectedObject; if (goodsReceiptDetailAvailable != null) { LineDetailBinlLocation lineDetailBinlLocation = new LineDetailBinlLocation() { CommodityID = goodsReceiptDetailAvailable.CommodityID, CommodityCode = goodsReceiptDetailAvailable.CommodityCode, CommodityName = goodsReceiptDetailAvailable.CommodityName, PackID = goodsReceiptDetailAvailable.PackID, PackCode = goodsReceiptDetailAvailable.PalletCode, CartonID = goodsReceiptDetailAvailable.CartonID, CartonCode = goodsReceiptDetailAvailable.CartonCode, PalletID = goodsReceiptDetailAvailable.PalletID, PalletCode = goodsReceiptDetailAvailable.PalletCode, WarehouseID = (int)this.warehouseAdjustmentViewModel.WarehouseReceiptID, BinLocationID = goodsReceiptDetailAvailable.NewBinLocationID, BinLocationCode = goodsReceiptDetailAvailable.NewBinLocationCode, Quantity = (decimal)goodsReceiptDetailAvailable.QuantityAvailable, LineVolume = (decimal)goodsReceiptDetailAvailable.LineVolumeAvailable }; Pickups.WizardDetail wizardDetail = new Pickups.WizardDetail(lineDetailBinlLocation); TabletMDI tabletMDI = new TabletMDI(wizardDetail); if (tabletMDI.ShowDialog() == System.Windows.Forms.DialogResult.OK) { foreach (var checkedObject in fastPendingList.CheckedObjects) { GoodsReceiptDetailAvailable p = (GoodsReceiptDetailAvailable)checkedObject; p.NewBinLocationID = (int)lineDetailBinlLocation.BinLocationID; p.NewBinLocationCode = lineDetailBinlLocation.BinLocationCode; } fastPendingList.RefreshObject(goodsReceiptDetailAvailable); } wizardDetail.Dispose(); tabletMDI.Dispose(); } } } } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
public void InitUIControls(FastObjectListView showListView, UsageControl.UsageControl usageThreadsInPool, UsageControl.UsageHistoryControl usageHistorySTP, Chart statisticsChart, Chart timeEfficiencyChart) { this.showListView = showListView; if (performance != null) { performance.usageHistorySTP = usageHistorySTP; performance.usageThreadsInPool = usageThreadsInPool; performance.statisticsChart = statisticsChart; performance.timeEfficiencyChart = timeEfficiencyChart; } }
private void fastAvailableGoodsReceiptDetails_SelectedIndexChanged(object sender, EventArgs e) { if (this.fileName == null) {//WHEN IMPORT: DEFUALT IS MULTIPLE SELECTED FastObjectListView fastAvailableGoodsReceiptDetails = (FastObjectListView)sender; if (fastAvailableGoodsReceiptDetails != null && fastAvailableGoodsReceiptDetails.SelectedObject != null) {//CLEAR ALL CHECKED OBJECTS => THEN CHECK THE CURRENT SELECTED ROW GoodsReceiptDetailAvailable goodsReceiptDetailAvailable = (GoodsReceiptDetailAvailable)fastAvailableGoodsReceiptDetails.SelectedObject; if (goodsReceiptDetailAvailable != null) { fastAvailableGoodsReceiptDetails.CheckedObjects = null; fastAvailableGoodsReceiptDetails.CheckObject(goodsReceiptDetailAvailable); } } } }
private void GetData(FastObjectListView olv) { try { olv.BeginUpdate(); olv.SetObjects(SimcList); olv.EndUpdate(); olv.Enabled = olv.Items.Count > 0; lblRecord.Text = "0 z " + olv.Items.Count; } catch (Exception) { throw; } }
public static void EnsureSelectionIsVisible(this FastObjectListView list) { if (list.InvokeRequired) { list.Invoke((Action)(() => { list.EnsureSelectionIsVisible(); })); return; } var obj = list.SelectedObject; if (obj != null) { list.EnsureModelVisible(obj); } }
public static void UpdateFOLV_add(FastObjectListView olv, ICollection Collection, bool ResizeCols = false, bool Follow = false) { Global_GUI.InvokeIFRequired(olv, () => { try { if (olv.Items.Count == 0) { olv.EmptyListMsg = "Loading..."; } olv.Freeze(); olv.UpdateObjects(Collection); if (olv.Items.Count > 0) { if (Follow) { olv.SelectedIndex = 0; //olv.Items.Count - 1; olv.EnsureModelVisible(olv.SelectedObject); } //update column size only if did not restore folv state file or forced if (olv.Tag == null || ResizeCols) { olv.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); olv.Tag = "resizedcols"; } } else { olv.EmptyListMsg = "Empty"; } } catch (Exception ex) { Global.Log("Error: " + Global.ExMsg(ex)); } finally { olv.Unfreeze(); } }); }
public static void SelectNextOrFirst(this FastObjectListView list) { if (list.InvokeRequired) { list.Invoke((Action)(() => { list.SelectNextOrFirst(); })); return; } var nextItem = list.GetNextItem(list.SelectedItem); if (nextItem == null) { nextItem = list.GetNextItem(null); } list.SelectedItem = nextItem; }
public static void SetFont(Control controlContainer, Font titleFont, Font font, Font toolbarFont) { List <Control> controls = ViewHelpers.GetAllControls(controlContainer); foreach (Control control in controls) { if (control is Label || control is CustomTabControl || control is NaviGroup) { control.Font = titleFont; } else if (control is TextBox || control is ComboBox || control is DateTimePicker) { control.Font = font; } else if (control is FastObjectListView) { control.Font = font; FastObjectListView fastObjectListView = control as FastObjectListView; fastObjectListView.RowHeight = 36; foreach (OLVColumn olvColumn in fastObjectListView.Columns) { olvColumn.HeaderFont = titleFont; } } else if (control is DataGridView) { DataGridView dataGridView = control as DataGridView; dataGridView.ColumnHeadersDefaultCellStyle.Font = titleFont; dataGridView.RowsDefaultCellStyle.Font = font; dataGridView.RowTemplate.Height = 36; } else if (control is ToolStrip) { foreach (ToolStripItem item in ((ToolStrip)control).Items) { if (item is ToolStripLabel || item is ToolStripTextBox || item is ToolStripComboBox || item is ToolStripButton) { item.Font = toolbarFont; } } } } }
private void InitializeDataListView(FastObjectListView olv) { olv.UseAlternatingBackColors = true; olv.AlternateRowBackColor = Color.Bisque; olv.ShowItemCountOnGroups = true; olv.OwnerDraw = true; // Zonder dit attribuut werden de checkboxes niet getekend maar kwam er True/False te staan. olv.FullRowSelect = true; // olv.CheckBoxes = true; olv.CellEditActivation = FastObjectListView.CellEditActivateMode.None; olv.UseFiltering = true; olv.UseFilterIndicator = true; olv.GroupWithItemCountFormat = "{0} ({1} rekeningen)"; olv.GroupWithItemCountSingularFormat = "{0} ({1} rekening)"; olv.HeaderWordWrap = true; olv.View = System.Windows.Forms.View.Details; olv.ShowGroups = true; olv.EmptyListMsg = "This list is empty."; olv.UseSubItemCheckBoxes = true; // moet aan staan om checkboxes op de print te laten zien! }
#pragma warning disable RCS1158 // Static member in generic type should use a type parameter. public static ObjectListView CreateListView(Control container) #pragma warning restore RCS1158 // Static member in generic type should use a type parameter. { var listView = new FastObjectListView() { Parent = container, BorderStyle = BorderStyle.FixedSingle, ShowItemToolTips = true, ShowGroups = false, UseFiltering = true, ShowCommandMenuOnRightClick = true, SelectColumnsOnRightClickBehaviour = ObjectListView.ColumnSelectBehaviour.None, ShowFilterMenuOnRightClick = true, FullRowSelect = true, UseAlternatingBackColors = true, HeaderUsesThemes = true, GridLines = true, AlternateRowBackColor = Color.FromArgb(240, 240, 240), UseFilterIndicator = true, FilterMenuBuildStrategy = new DiagnosticsFilterMenuBuilder() { MaxObjectsToConsider = int.MaxValue, }, MultiSelect = false, HideSelection = false, /*UseHotItem = true, * HotItemStyle = new HotItemStyle() * { * Decoration = new RowBorderDecoration() * { * BorderPen = new Pen(Color.DarkBlue, 1), * BoundsPadding = new Size(1, 1), * CornerRounding = 8, * }, * },*/ }; listView.CellToolTip.IsBalloon = true; return(listView); }
/// <summary> /// Apply thememanager theme to the treeview /// </summary> public static void StyleIt(FastObjectListView fastOlv, string emptyListString) { // Style the control fastOlv.OwnerDraw = true; fastOlv.Font = FontManager.GetFont(FontFunction.AutoCompletion); fastOlv.BackColor = ThemeManager.Current.MenuNormalBack; fastOlv.AlternateRowBackColor = ThemeManager.Current.MenuNormalAltBack; fastOlv.ForeColor = ThemeManager.Current.MenuNormalFore; fastOlv.HighlightBackgroundColor = ThemeManager.Current.MenuFocusedBack; fastOlv.HighlightForegroundColor = ThemeManager.Current.MenuFocusedFore; fastOlv.UnfocusedHighlightBackgroundColor = ThemeManager.Current.MenuFocusedBack; fastOlv.UnfocusedHighlightForegroundColor = ThemeManager.Current.MenuFocusedFore; // Decorate and configure hot item fastOlv.UseHotItem = true; fastOlv.HotItemStyle = new HotItemStyle { BackColor = ThemeManager.Current.MenuHoverBack, ForeColor = ThemeManager.Current.MenuHoverFore }; // overlay of empty list : fastOlv.EmptyListMsg = emptyListString; TextOverlay textOverlay = fastOlv.EmptyListMsgOverlay as TextOverlay; if (textOverlay != null) { textOverlay.TextColor = ThemeManager.Current.ButtonNormalFore; textOverlay.BackColor = ThemeManager.Current.ButtonNormalBack; textOverlay.BorderColor = ThemeManager.Current.ButtonNormalBorder; textOverlay.BorderWidth = 4.0f; textOverlay.Font = FontManager.GetFont(FontStyle.Bold, 30f); textOverlay.Rotation = -5; } fastOlv.UseAlternatingBackColors = Config.Instance.GlobalUseAlternateBackColorOnGrid; }
internal static List <T> CollectCheckedObjects <T>(this FastObjectListView listView, ObjectListViewCollector returnIfNoneChecked = ObjectListViewCollector.All) { if (listView.Objects == null || listView.GetItemCount() == 0) { return(new List <T>()); } List <T> list = new List <T>(); if (listView.CheckedObjects.Count > 0) { foreach (var ch in listView.CheckedObjects) { list.Add((T)ch); } } else { switch (returnIfNoneChecked) { case ObjectListViewCollector.Empty: return(list); case ObjectListViewCollector.Selected: if (listView.SelectedObject != null) { list.Add((T)listView.SelectedObject); } break; case ObjectListViewCollector.All: foreach (var item in listView.Objects) { list.Add((T)item); } break; } } return(list); }
private void ListViewConfig(FastObjectListView 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 = 0; olv.MultiSelect = false; HeaderFormatStyle HeaderStyle = new HeaderFormatStyle(); HeaderStyle.SetFont(new Font(olv.Font.FontFamily, olv.Font.Size, FontStyle.Bold)); olv.HeaderFormatStyle = HeaderStyle; //olv.AlwaysGroupByColumn = GetGroupColumn(); }