Activity for ObjectListView

  • Rick Ellison N2AMG Rick Ellison N2AMG posted a comment on discussion Open Discussion

    I am looking for a way to know when the user changes columns( hide/unhide or ability to move) columns into a different location. When a user hides a column the list needs to have its width adjusted for the missing columns. Or when they unhide then to adjust the windows width. Does anyone have any code to do this the best or knows a way to do what I am talking about.. I'm using the OLV in vb.net Rick

  • Stefano Beraldo Stefano Beraldo posted a comment on ticket #187

    I found this comment: // The DataTreeListView needs to know the key that identifies root level objects. // DataTreeListView can handle that key being any data type, but the Designer only deals in strings. // Since we want a non-string value to identify keys, we have to set it explicitly here. this.olvDataTree.RootKeyValue = 0u;

  • Stefano Beraldo Stefano Beraldo created ticket #187

    RootKeyValue in DataTreeListView

  • Stefano Beraldo Stefano Beraldo posted a comment on discussion Open Discussion

    I think is the same issue already solved " 2014-04-25 JPP - Fixed issue where virtual lists containing a single row didn't update hyperlinks on MouseOver" but not for treelistview o dataTreeListView.

  • Stefano Beraldo Stefano Beraldo posted a comment on discussion Open Discussion

    Hi all, I am trying to use 2 Hyperlink Handler on the dataTreeListView control. The link works but often the handle gets stuck even after moving the mouse pointer from over the link. This does not happen with the objectListView control. this.objectListView1.IsHyperlink += delegate (object sender, IsHyperlinkEventArgs e) { e.Url = linkHTable.Contains(e.Text) ? (string)linkHTable[e.Text] : null; }; this.dataTreeListView1.IsHyperlink += delegate (object sender, IsHyperlinkEventArgs e) { e.Url = linkHTable.Contains(e.Text)...

  • Kate Ward Kate Ward posted a comment on discussion Open Discussion

    There is a version of ObjectListView that has been ported to .NET 6, which works perfectly fine with .NET 8. Nuget: https://www.nuget.org/packages/ObjectListView.Repack.NET6Plus/ Github: https://github.com/nasisakk/ObjectListViewRepack

  • Massimiliano Baratta Massimiliano Baratta created ticket #31

    ObjectListView update

  • Jeff Gaines Jeff Gaines posted a comment on discussion Open Discussion

    Has anybody done any work on stripping this back to a bare ListView? It is excellent but to me would be much more useful as a drop in replacement.

  • saper-2 saper-2 created ticket #30

    Update for .Net 9.0

  • Haluk Uzuner Haluk Uzuner posted a comment on discussion Open Discussion

    Does anybody have a working dll which work on .net8. Or, can anybody convert the code to .net8?

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    Many thanks, Johnny J, works a treat!

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    Old question, but here is a way of determining if the scrollbars are showing: [DllImport("user32.dll", EntryPoint = "GetWindowLong", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex); [DllImport("user32.dll", EntryPoint = "GetWindowLongPtr", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex); private bool HasHorizontalScrollBar(ListView lv) { const int GWL_STYLE = -16; const int WS_HSCROLL = 0x00100000; return...

  • Johnny J Johnny J posted a comment on discussion Help

    Old question, but here is the answer in case somebody else needs it: [DllImport("user32.dll", EntryPoint = "GetWindowLong", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex); [DllImport("user32.dll", EntryPoint = "GetWindowLongPtr", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex); private bool HasHorizontalScrollBar(ListView lv) { const int GWL_STYLE = -16; const int WS_HSCROLL = 0x00100000; return (GetWindowLong(lv.Handle,...

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    OK, so apparently, there is an undocumented method called DrawToBitmap that does MORE OR LESS what I need. It does, however, just draw the TreeView with scrollbar, so I need to figure out how I get it to render the entire content. There also seem to be a but in the routine, because it doesn't render the expansion boxes and the treelines.... :-( Tips are still very welcome! TIA! :-)

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    OK, so this may sound strange, and it may be hard to explain, but let me give it a try: I have a TreeListVew containing a large tree, and because of the form size, it has scroll bars. I want to save this view as an image, but I want to save the entire tree without scrollbar, not just the nodes that are currently visible on the form. I have no idea where to start vith this. I think I need to find out how to do two things: 1) Find out the dimensions of the rendered tree without cropping 2) Use that...

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    OK, so this may sound strange, and it may be hard to explain, but let me give it a try: I have a TreeListVew containing a large tree, and because of the form size, it has scroll bars. I want to save this view as an image, but I want to save the entire tree without scrollbar, not just the nodes that are currently visible on the form. I have no idea where to start vith this. I think I need to find out how to do two things: 1) Find out the dimensions of the rendered tree without cropping 2) Use that...

  • Pablo Pablo modified a comment on discussion Help

    Hello, I have the entire project (objectlistview) compiled for '<targetframework>net6.0-windows</targetframework>' in Visual Studio 2022 with updates at 26-may-2024. How should i contribute to this project so anyone can share my (superficial) adaptations?

  • Pablo Pablo posted a comment on discussion Help

    Hello, I have the entire project compiled for '<targetframework>net6.0-windows</targetframework>' in Visual Studio 2022 with updates at 26-may-2024. How should i contribute to this project so anyone can share my (superficial) adaptations?

  • memoiike memoiike created ticket #35

    automatically resort a column when a cell is edited

  • Alan Alan posted a comment on discussion Help

    Looks like a bug to me, and it can be reproduced in the demos, by setting TriStateCheckBoxes = false, and then playing around with the checkboxes. I'm experiencing a similar problem: checkboxes become "stuck" randomly. They can't be checked or unchecked by clicking on them, or even by calling listView.CheckHeaderCheckBox() and listView.UncheckHeaderCheckBox() on their column header. And then, suddenly they become unstuck again. Phillip: SOS!

  • My Name My Name posted a comment on discussion Open Discussion

    I have owner draw in quotes because yeah you cant change the underlying winforms control.. However you can use an overlay that is completely opaque to redraw over the group names. Therefore with the right events hooked up and logic you can draw them yourself. Just as a proof of concept I have implemented the overlay detecting group state changes, and control resizing. With this being a proof of concept, there are a lot of assumptions, and things not implemented like getting the height of the group...

  • Eric Snyder Eric Snyder posted a comment on discussion Open Discussion

    ObjectListView converts everything to string. I have a double field that is a percentage. It displays with full precision 0.8436489032849. I'd rather have it display 84.36%. How does one do that?

  • Eric Snyder Eric Snyder modified a comment on discussion Open Discussion

    I need to implement a custom sort on the fastObjectListView. I DO see the help at this page: No CustomSorter on FastObjectListView One incompatibility between v1.x and v2.0 is that FastObjectListViews can no longer have a CustomSorter. In v1.x it was possible, if tricky, to get a CustomSorter to work with a FastObjectListView, but that is no longer possible in v2.0 In v2.0, if you want to custom sort a FastObjectListView, you will have to subclass FastObjectListDataSource and override the SortObjects()...

  • Eric Snyder Eric Snyder posted a comment on discussion Open Discussion

    I need to implement a custom sort on the fastObjectListView. I DO see the help at this page: No CustomSorter on FastObjectListView One incompatibility between v1.x and v2.0 is that FastObjectListViews can no longer have a CustomSorter. In v1.x it was possible, if tricky, to get a CustomSorter to work with a FastObjectListView, but that is no longer possible in v2.0 In v2.0, if you want to custom sort a FastObjectListView, you will have to subclass FastObjectListDataSource and override the SortObjects()...

  • JOSE MANUEL DIAZ JOSE MANUEL DIAZ modified a comment on discussion Open Discussion

    Is posible to show only vertical lines into ObjectListView ? Thanks

  • JOSE MANUEL DIAZ JOSE MANUEL DIAZ posted a comment on discussion Open Discussion

    Is posible to show only vertical lines ? Thanks

  • Fahad Fahad posted a comment on discussion Open Discussion

    Hello Everyone, I am using C#. I have a BrightIdeasSoftware.TreeListView in a Windows Forms application. I want to do: 1- Add a combobox (dropdownlist) in one of the column of that TreeListView and show a list of strings in that. The list of string will already have the associated object(say User) property (say username) value. 2- When user selects a string from that drop down, I want to associate the selected item's text of combobox with a property (say username) of model Object(say User). How can...

  • Yann Gallice Yann Gallice created ticket #186

    Error in GetDisplayOrderOfItemIndex for VirtualObjectListView

  • wangjianbin wangjianbin posted a comment on discussion Open Discussion

    I see code and modify ObjectListView.cs,add "CharSet=CharSet.Unicode" [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] public struct NMLVGETINFOTIP { public NativeMethods.NMHDR hdr; public int dwFlags; public string pszText; public int cchTextMax; public int iItem; public int iSubItem; public IntPtr lParam; } maybe is ok。

  • wangjianbin wangjianbin posted a comment on discussion Open Discussion

    Hi: When use TreelistView and Bind list to treelistview and Click node,occurred one error,“System.ArgumentOutOfRangeException:“In a multibyte object code page, there are no characters to which this Unicode character can be mapped。 (error from HRESULT:0x80070459)” 。My language is Chinese。 Please how to resolve,Thanks!

  • Jeffrey Gaines Jeffrey Gaines posted a comment on discussion Help

    When I use HeaderFormatStyle to give a coloured background on the Header the vertical lines indicating column boundaries no longer show up (whatever colour the background is). Any thoughts on what I need to do to make them visible?

  • Adam Jones Adam Jones posted a comment on discussion Help

    I've had this issue with checkboxes in trees for a while and thought I'd ask about it. On a completely clean tree with no special handling, the first click of a checkbox will check the checkbox...but then it will uncheck itself. Clicking it again--same spot in the checkbox or different--will cause it to check the box and remain checked. All subsequent checkbox clicks result in good checks/unchecks. It is only ever on the first check of a checkbox If I add handling to check the box on a row click,...

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    I want to filter out models in my ObjectListView that: 1) One of the properties contains a specific text (this is easily done on itself with a TextMatchFilter of course) OR 2) The OLVListItem is checked OR 3) The OLVListItem is selected As far as I can see, creating a custom modelfilter works on the objects themselves, thus the corresponding OLVListItem is not available to combine with that. If I could create a custom ModelFilter that keeps all checked and selected items, I realize that I can combine...

  • Johnny J Johnny J posted a comment on discussion Open Discussion

    I'm trying to change TileSize programmatically for an objectlistview that is in Tile mode. The items change the size correctly, but the position is not changed until the mouse moves over the listview. That means that if the TileSize has been doubled, the tiles are overlapping each other, and if it has been halved, they have a tile's space between them. When the mouse moves over the listview, they "pop" into place. I've tried calling ObjectListView.Invalidate() and ObjectListView.Refresh() after the...

  • Paolo Marani Paolo Marani posted a comment on discussion Open Discussion

    I had the same problem, it appear that on the LVGROUPMETRICS structure, only bordersize is recognized, all colours have been deprecated and do nothing from win >= vista. Why why why?

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    I am trying to find my way round objectlistview. I can add columns but I am having problems adding data the WinForms way, perhaps it's just not possible? The error is: "Unable to cast object of type 'ListViewSubItem' to type 'BrightIdeasSoftware.OLVListSubItem'." Source="ObjectListView" BrightIdeasSoftware.BaseRenderer.ConfigureSubItem(DrawListViewSubItemEventArgs e, Rectangle cellBounds, Object model) in Renderers.cs:line 1109 The nearest I can get to it is Bug #174 from 2019. My function for adding...

  • Steve Cato Steve Cato modified a comment on discussion Help

    I too struggled with this till I found this post. I too could not find CheckAspectName at the column level where you would expect it. It seems like a strange design - but I eventually realised that all columns are not created equal. Making a checkbox in the first column is totally different to making a checkbox in the other columns. To make checkboxes for the first column you work at the OLV control level using the CheckAspectName and CheckBoxes properties of the control. To make checkboxes on other...

  • Steve Cato Steve Cato posted a comment on discussion Help

    I too struggled with this till I found this post. I too could not find CheckAspect name at the column level where you would expect it. It seems like a strange design - but I eventually realised that all columns are not created equal. Making a checkbox in the first column is totally different to making a checkbox in the other columns. To make checkboxes for the first column you work at the OLV control level using the CheckAspectName and CheckBoxes properties of the control. To make checkboxes on other...

  • Paul de Boer Paul de Boer posted a comment on discussion Help

    Confirmed. Thanks Jonathan.

  • Julius Julius posted a comment on discussion Open Discussion

    A shorter (perhaps not the most optimal) fix: // Get around the 'private' marker on 'virtualListSize' field using reflection if (virtualListSizeFieldInfo == null) { var fields = typeof(ListView).GetFields(BindingFlags.NonPublic | BindingFlags.Instance); virtualListSizeFieldInfo = Array.Find(fields, field => field.Name.EndsWith("virtualListSize")); System.Diagnostics.Debug.Assert(virtualListSizeFieldInfo != null); }

  • Haluk Uzuner Haluk Uzuner posted a comment on discussion Open Discussion

    Hi, I am using TreeListView in my project. I want to do some operation when selected one row in treelistview by mouse or by keyboard arrows. As far as I understand SelectionChanged event does this action. But it doesn't trigger. I downloaded some examples from the internet they are worked but in my case didn't work. My project is written in c++/cli. I compiled objectlistviewer code in C# and tied it to my project as reference. Row click event works. But SelectionChanged event doesn't trigger. What...

  • Claude Turner Claude Turner posted a comment on discussion Help

    Hi, I am trying to work with checkboxes on the TreeListView, and I would like the parent to be checked (or inderterminate) when none of the children are checked. Right now if I uncheck all the children the parent gets unchecked as well. As an example I have a tree control of my directory structure on the left, on the right I have an ObjectListView that lists all the files in the selected directories. What I want is to see all the files in the root directory, but none of the subdirectories Claude

  • Mike Walter Mike Walter posted a comment on discussion Open Discussion

    Looks like Microsoft has changed the names of private fields in ListView to start with an underscore. I needed to add the following to VirtualObjectListView.cs. if NET7_0_OR_GREATER virtualListSizeFieldInfo = typeof(ListView).GetField( "_virtualListSize", BindingFlags.NonPublic | BindingFlags.Instance); else virtualListSizeFieldInfo = typeof(ListView).GetField("virtualListSize", BindingFlags.NonPublic | BindingFlags.Instance); endif I also changed ObjectListView.DesignTime.Cs, but not sure if that...

  •  Simon Giesen Simon Giesen modified a comment on discussion Help

    Hi folks, I just would like to know if my checkbox in a sub item has been checked or not by clicking on it. How can this be achieved? Thanks in advance!

  •  Simon Giesen Simon Giesen modified a comment on discussion Help

    Hi folks, I just would like to know if my checkbox in a sub item has been checked or not by clicking on it. How can this be achieved? Thanks in advance!

  •  Simon Giesen Simon Giesen posted a comment on discussion Help

    Hi folks, I just would like to know if my checkbox in a sub item has been checked or not. How can this be achieved? Thanks in advance!

  • Mel Markarian Mel Markarian created ticket #29

    Column Creation through properties list throwing exception

  • RJ Aitch RJ Aitch posted a comment on discussion Open Discussion

    Throws exception after I've added several columns and done a SetObjects(). Only throws when I try to do a subsequent AutoResizeColumns() or Show() I just move the .exe and .dll (and .exe.config) - the exe runs fine until I try to use any OLV objects

  • RJ Aitch RJ Aitch posted a comment on discussion Open Discussion

    Thanks for that. Alas, the log shows nothing even after new build

  • Phillip Piper Phillip Piper posted a comment on discussion Open Discussion

    Does it give the ObjectDisposed exception after your first call to the OLV? Or is it on your second/subsequent calls? When you move the .exe/.dll, do you copy the whole bin folder, or just some of it?

  • Steve hiner Steve hiner posted a comment on discussion Open Discussion

    I don't have a solution for you because I haven't touched any of my projects that use OLV in a long time, however, I do have a suggestion. If I were you I'd use the fusion log viewer to find out what's happening in the .Net binding process. I've been able to use it in the past to track down strange issues when moving files because it can result in them binding to the wrong thing. https://learn.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer There's also a more...

  • RJ Aitch RJ Aitch posted a comment on discussion Open Discussion

    BTW: Occurs after calling Show() But also occurs if I call AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent) prior to Show()

  • RJ Aitch RJ Aitch posted a comment on discussion Open Discussion

    Downloaded files, generated the .dll, and it all works fine when the .exe is being run out of my development directory. As soon as I move the .exe (and the .dll) to another directory I get the ObjectDisposedException. Had been using 2.9.1 and tried 2.8.0 - Same problem Tried including the ObjectListView source into my project (instead of dll) - Same problem Cannot stress this enough: All works fine until I move the .exe (and .dll) to another directory. I'm confused. Any pointers appreciated. ** Exception...

  • Paul de Boer Paul de Boer posted a comment on discussion Help

    I gave up as I like the alternate row highlighting better than what I was going to do. FYI I was going to darken the highlighting based on tree depth.

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    Wow, Dezer, thanks for going to so much trouble, a gold star especially as it is the first time! That's brill, I can turn it into C# and make use of it. Thanks again :-)

  • Dezer Dezer modified a comment on discussion Help

    First time have tried to help someone, im a VB programmer but i can read your code, but you will have to convert mine It looks like you are trying to use OLVListItem like a normal listview , dont use the add.subitems OLV uses objects Build your empty object first (this would be each item in the listview from left to right) Class VatItem Public Sub New(Id As Integer, Code As String, Description As String, Note as String, Rate As Double) 'Set Defaults Me.Id = Id Me.Code = Code Me.Description = Description...

  • Dezer Dezer modified a comment on discussion Help

    First time have tried to help someone, im a VB programmer but i can read your code, but you will have to convert mine It looks like you are trying to use OLVListItem like a normal listview , dont use the add.subitems OLV uses objects Build your empty object first (this would be each item in the listview from left to right) Class VatItem Public Sub New(Id As Integer, Code As String, Description As String, Rate As Double) 'Set Defaults Me.Id = Id Me.Code = Code Me.Description = Description Me.Note...

  • Dezer Dezer posted a comment on discussion Help

    First time have tried to help someone, im a VB programmer but i can read your code, but you will have to convert mine It looks like you are trying to use OLVListItem like a normal listview , dont use the add.subitems OLV uses objects Build your empty object first (this would be each item in the listview from left to right) Class VatItem Public Sub New(Id As Integer, Code As String, Description As String, Rate As Double) 'Set Defaults Me.Id = Id Me.Code = Code Me.Description = Description Me.Note...

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    Hi Dezer, thanks for replying. I am trying to add data like this: void FillListView(ObjectListView listView, int numRows) { // Text, Number, Date, Text OLVListItem lvItem; for (int count = 0; count < numRows; count++) { lvItem = new OLVListItem(JLibrary.GetRandomString(15)); lvItem.SubItems.Add(JLibrary.GetRandomNumber(-1000, 1000).ToString()); lvItem.SubItems.Add(JLibrary.GetRandomDateTime(1900, 2023).ToLongDateString()); lvItem.SubItems.Add(JLibrary.GetRandomString(20)); listView.Items.Add(lvItem);...

  • Dezer Dezer posted a comment on discussion Help

    Hi I have been using it for years, and its based on the listview, how do you want to add things ?

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    This may be heresy but as much as I like OLV I would much prefer to add data in the same way as a Winforms ListsView. Has anybody considered this and how to achieve it?

  • Paul de Boer Paul de Boer posted a comment on discussion Help

    Hi, I've been using the TreeListView control in winforms .net6.0 Its been working great, but some little things I'm unable to figure out. I don't know how to highlight a line programatically like it does when you enable UseHotItem. I tried setting the SelectedBackColor and SelectedForeColor, but those seem to only apply to the first field, and only applies after I've clicked once. I'd also like to hightlight single cells of a row and I can't figure out how to do that either.

  • Jonathan Savage Jonathan Savage posted a comment on discussion Help

    I had problems using OLV with .NET core, with no errors, but nothing displayed. To solve this, I downloaded ObjectListViewRepack, built it locally, then changed VirtualObjectListView.cs as shown below where marked with #!JFS#! (change a field to a property.) I also found that by default, virtual mode was set to false in the designer, which throws all sorts of errors. Hopefully this helps others. Jonathan (fellrnr) Savage protected new virtual int VirtualListSize { get { return base.VirtualListSize;...

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    Is there a way to find out if the vertical ScrollBar is visible in an ObjectListView please?

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    In a ListView I have the following code to indicate a condition: foreach (JContactData current in listContacts) { lvItem = new ListViewItem(current.DisplayName); ** if ((current.IncludeInPhoneList > 0)) { lvItem.SubItems.Add("✓"); } else { lvItem.SubItems.Add(""); }** ... more code for rest of record Can I reproduce this with some type of conditional formatting please?

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    Just to say I switched to using an ObjectListView as it gives me the flexibility I need.

  • Jeff Gaines Jeff Gaines posted a comment on discussion Help

    I started using a DataListView yesterday and I have managed to set up a test name and address project (Winforms, C#) using it and I have managed to fill it from an Access database. Ideally I do not want to show the record number in the DataListView but since it is in my DataSet it seems to show it whether or not I add a column for it - does it just add columns for everything in the DataSet? I do need the Record Number to edit the record. I am trapping ItemActivate as follows: DataRowView drv = (DataRowView)m_DataLV.SelectedObject;...

  • SMKnight SMKnight posted a comment on discussion Open Discussion

    I was wondering the same.

  • sippy sippy posted a comment on discussion Open Discussion

    Can someone please clarify: the ObjectListView.Official package hosted on nuget is 2.9.2-alpha2 dated June 1, 2016. However, trunk on SourceForge is dated 2018 and source code differs in a number of ways. Is this project actively being supported? If so, can we update the nuget package to the latest code? If it is not supported, are people just building trunk manually? Who is actively developing in trunk?

  • Ben Tam Ben Tam posted a comment on discussion Open Discussion

    Dear All, I created a test project to test adding columns in a DataListView, not ListView. The code is as follows. I press the small triangle of the right upper to edit a column. But the SQL data does not show. using System; using System.Data; using System.Data.OleDb; using System.Windows.Forms; namespace DataListViewCol { public partial class Form1 : Form { static readonly OleDbConnection myConnection = new OleDbConnection("Provider=MSOLEDBSQL;Server=localHost;Database=" + "TIMS" + ";Trusted_Connection=yes;");...

  • Yvonne Pautz Yvonne Pautz modified a comment on ticket #185

    Had to create a workaround by wrapping the ObjectListView class with my own WndProc: public EventHandler<GroupExpandingCollapsingEventArgs> GroupExpandingCollapsing2; ... // well.. i dunno if theres a better msg to catch if (m.Msg == WM_LBUTTONDBLCLK) { // this just gives me the listview control //Control ctrl = Control.FromHandle(m.HWnd); //Point pt = PointToClient(Cursor.Position); Point pt = new Point(Native.LOWORD(m.LParam), Native.HIWORD(m.LParam)); //Console.WriteLine($"------------------ {pt.X}...

  • Yvonne Pautz Yvonne Pautz modified a comment on ticket #185

    Had to create a workaround by wrapping the ObjectListView class with my own WndProc: public EventHandler<GroupExpandingCollapsingEventArgs> GroupExpandingCollapsing2; ... if (m.Msg == WM_LBUTTONDBLCLK) { // this just gives me the listview control //Control ctrl = Control.FromHandle(m.HWnd); //Point pt = PointToClient(Cursor.Position); Point pt = new Point(Native.LOWORD(m.LParam), Native.HIWORD(m.LParam)); //Console.WriteLine($"------------------ {pt.X} / {pt.Y}"); // loop through each group foreach(OLVGroup...

  • Yvonne Pautz Yvonne Pautz modified a comment on ticket #185

    Had to create a workaround by wrapping the ObjectListView class with my own WndProc: public EventHandler<GroupExpandingCollapsingEventArgs> GroupExpandingCollapsing2; ... if (m.Msg == WM_LBUTTONDBLCLK) { // this just gives me the listview control //Control ctrl = Control.FromHandle(m.HWnd); //Point pt = PointToClient(Cursor.Position); Point pt = new Point(Native.LOWORD(m.LParam), Native.HIWORD(m.LParam)); //Console.WriteLine($"------------------ {pt.X} / {pt.Y}"); // loop through each group foreach(OLVGroup...

  • Yvonne Pautz Yvonne Pautz posted a comment on ticket #185

    Had to create a workaround by wrapping the ObjectListView class with my own WndProc: if (m.Msg == WM_LBUTTONDBLCLK) { // this just gives me the listview control //Control ctrl = Control.FromHandle(m.HWnd); //Point pt = PointToClient(Cursor.Position); Point pt = new Point(Native.LOWORD(m.LParam), Native.HIWORD(m.LParam)); //Console.WriteLine($"------------------ {pt.X} / {pt.Y}"); // loop through each group foreach(OLVGroup grp in this.OLVGroups) { // get group header rect RECT rectHeader = new RECT();...

  • Yvonne Pautz Yvonne Pautz created ticket #185

    OLV.GroupExpandingCollapsing not fired on double click

  • JSB JSB modified a comment on discussion Open Discussion

    Hi! I'm actively using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1 ||----Verification2...

  • JSB JSB modified a comment on discussion Open Discussion

    Hi! I'm activeluy using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1...

  • JSB JSB posted a comment on discussion Open Discussion

    Hi! I'm activeluy using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1...

  • aviabunin aviabunin posted a comment on discussion Open Discussion

    It would be interesting if ObjectListView could be used in Blazor. This work is absolutely amazing!

  • Anatolie Rimbu Anatolie Rimbu posted a comment on discussion Open Discussion

    I did something like that: public class CustomButtonRenderer : ColumnButtonRenderer { public Color BackColor { get; set; } public Color ForeColor { get; set; } protected override void DrawImageAndText(Graphics g, Rectangle r) { TextFormatFlags textFormatFlags = TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.EndEllipsis | TextFormatFlags.NoPadding | TextFormatFlags.SingleLine | TextFormatFlags.PreserveGraphicsTranslateTransform; if (this.ListView.RightToLeftLayout)...

  • Tdavis Tdavis posted a comment on discussion Open Discussion

    It works fine, however not for Design time actions like you're trying to do. .Net core controls are a mess in regards to this and not even completely documented/finished yet. You can either create your ObjectListviews in a supported Framework and copy over, or just create/manage your columns programmatically. -TD

  • JOSE MANUEL DIAZ JOSE MANUEL DIAZ posted a comment on ticket #28

    Hi everyone. Solved Only I changed e.NewValue before CellEditFinished event private void olv_CellEditFinishing(object sender, CellEditEventArgs e) { ETextBox tb = e.Control as ETextBox; if (tb != null) { e.NewValue = tb.Text; } }

  • JOSE MANUEL DIAZ JOSE MANUEL DIAZ created ticket #28

    ObjectListView CellEditFinished

  • David Christian David Christian posted a comment on discussion Open Discussion

    Has anyone tested with .Net 6 Winforms? I installed the NuGet package, dropped an ObjectListView on my form. In the designer I go to the Columns edit and as soon as I add a column I get and unhandled exception: Unable to cast object of type 'System.Windows.Forms.ColumHeader' to type 'BrightIdeasSoftware.OLVColumn'

  • JSB JSB posted a comment on discussion Open Discussion

    HI! I'm using a treelistview. It works flawlesly. I have a two level object hierarchy. Depending on the type of object I asign it an image from a imagelist. This works well. Previously I was using an objectlistview. I had a first column with a white star image. The user would click on it and the star would change to a full yellow star. This also triggered some sql changes so the user added that object to a favourite table. I can't really replicate this with the treelistview. Is it possible to add...

  • Grigory Grigory posted a comment on discussion Help

    Hello! I'm trying to use ObjectListView with python, I also want to insert buttons; in https://pypi.org/project/ObjectListView/ has an old version v1.3.1. I can't find anywhere how to install the new version v2.9.1 for Python. Is this even possible at the moment, how to do it?

  • JSB JSB posted a comment on discussion Help

    Hi! Sorry to bother @grammarian but, Is there a way to add a text filter to the "excel-like" filter? It would be great to have a way to filter by "Contains..." or "Starts with..." Thank you for this great control!

  • Gregor Matz Gregor Matz posted a comment on discussion Open Discussion

    Hi community, I struggle a bit with a (potentially) simple problem. I am not a total beginner but I am also no professional programmer. I am using ObjectListView and my list has a couple of Double values that I display. My problem is that ObjectListView always uses a "NumericUpDown" component to display these values and the value is limited to a certain value of domething like 999999999. I would like to use a textBox to freely change the value to for example 13E200 and to get rid of this "UpDown"-Arrows....

  • Maarten Maarten posted a comment on discussion Open Discussion

    same problem here. Any updates?

  • Maarten Maarten posted a comment on discussion Help

    Did you finally published your code somewhere? I am still struggling with the issue and can use any source as help.

  • Maarten Maarten modified a comment on discussion Open Discussion

    I realize it's a long time ago, but I have issue with the combobox as much others have. The combobox is filled and shown correctly. I can select an item from it and can leave the cell by selecting another one. Leaving the cell triggers the dlvFigures_CellEditFinished(sender As Object, e As CellEditEventArgs) Handles dlvFigures.CellEditFinished function. e.control is a combox but always empty. It doesn't contain any items. What am I overlooking here?

  • Maarten Maarten posted a comment on discussion Open Discussion

    I realize it's a long time ago, but I have issue with the combobox as much others have. The combobox is filled and shown correctly. I can select an item from it and can leave the cell by selecting another one. Leaving the cell triggers the dlvFigures_CellEditFinished(sender As Object, e As CellEditEventArgs) Handles dlvFigures.CellEditFinished function. e.control is a combox but always empty. It doesn't contain any items. What am I overlooking here?

  • JOSH JOSH posted a comment on discussion Open Discussion

    Greeting from 2022, can you provide an example for TreeRenderer? Im using HighlightTextRenderer on TreeListView but only first column "olvColumn1" is not working. var filter = TextMatchFilter.Contains(treeListView1, txtSearchInTable.Text); filter.Columns = new[] { this.olvColumn1, this.olvColumn2, this.olvColumn3, this.olvColumn4 }; treeListView1.DefaultRenderer = new HighlightTextRenderer(filter);

  • SIMON ALEMAN SIMON ALEMAN posted a comment on discussion Help

    I am getting The thread 0x11f90 has exited with code 259 (0x103) on form load. What would cause that?

  • SIMON ALEMAN SIMON ALEMAN created ticket #27

    VB.NET Programmatic checking of Excel Style Filter Values for column

  • Ben Tam Ben Tam posted a comment on discussion Open Discussion

    Dear All, I copied the code from https://sourceforge.net/p/objectlistview/discussion/812923/thread/8c12bc38/ . However I got errors in c# (see the attached GIF file). One of the errors is: 'ColumnHeader' does not contain a definition for 'HasFilterIndicator' and no accessible extension method 'HasFilterIndicator' accepting a first argument of type 'ColumnHeader' could be found (are you missing a using directive or an assembly reference?) Other errors are similer. May I know how to fix it?

  • Doug Duthie Doug Duthie posted a comment on discussion Open Discussion

    To answer my own question, I just went through the code of ObjectListView and (in 2.9.1 anyway) it appears the MenuLabelSortXXX properties are redundant as far as sorting the labels. The only thing that matters is the column LastDisplayIndex property. As the columns I display are manually chosen, ordered and saved by the user, dynamically setting LastDisplayIndex with whatever sorting criteria I want seems to do the job

  • Doug Duthie Doug Duthie posted a comment on discussion Open Discussion

    How do I order the columns shown on header right click? I'd like to be able to order them alphabetically, or alphabetically in groups. I see there are a bunch of properties named MenuLabelSortXXXX but I can't find any documentation on how to use them Thanks

  • sippy sippy posted a comment on discussion Open Discussion

    Confirming this is still a problem

  • sippy sippy posted a comment on discussion Open Discussion

    It appears that the OLVExporter does not properly escape fields in a listview row that have quotes in them. The result is an incomplete value. Is there a workaround?

1 >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.