objectlistview

Bindingsource is not suspending binding

荒凉一梦 提交于 2019-12-17 17:15:53
问题 I have a form that displays custom details, one section being a list of bank accounts associated with the customer. This list is bound to it's own bindingsource, so when loading a customer I do: bsCustomer.DataSource = customer; bsCustomerAccounts.DataSource = customer.Accounts; I have an ObjectListView that is bound to bsCustomerAccounts . So far everything works fine. To edit a particular account, I double-click on it and open a separate form: using (var form = new CustomerAccountForm

ObjectListView how to show child list<>

懵懂的女人 提交于 2019-12-13 06:20:24
问题 Hi Im using ObjectListView, and having this classes: public class Person { public string Name{get;set;} public List<Things> {get;set;} } public class Things { public string Name{get;set;} public string Description{get;set;} } How can I show something like this in the ObjectListView: 回答1: I believe a tree-view can help here. You could use the TreeListView component which is part of the ObjectListView. It is very similar in use. You have to provide the relevant delegates and the TLV will do the

wxPython ObjectListView Capture Ctrl-C shortcut

不羁岁月 提交于 2019-12-13 04:47:52
问题 I am having difficulty with my program written in Python 2.7.5 using wxPython 2.9.5, ObjectListView 1.2, lxml 2.3, and SQLAlchemy 0.8.2 and compiled into an exe with py2exe. The problem I am running into is after compiling the program into an exe I am no longer able to use Ctrl-C to copy data from the ObjectListView and paste it into other programs such as Excel, Notepad, or even Notepad++. This happens regardless of how many rows are selected to be copy/pasted. The results I get when pasting

Get the cell value from cellClick in ObjectListView's TreeListView

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:15:06
问题 When I use the treeListView cellClick Event: private void treeListView_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e) Using "CellClickEventArgs e", how can I find the current value (lets assume it is an Int32) of this specific cell? 回答1: I assume that CellClickEventArgs contains property that indicate Index of cell. Try to get it and then grab cell from treeListView by index. 回答2: Found the answer: private void treeListView1_CellClick(object sender, BrightIdeasSoftware

c# - Change color of groups in ObjectListView

我与影子孤独终老i 提交于 2019-12-12 13:19:29
问题 When building groups in ObjectListView, how do I change the color of the group? In default groups are shown with a dark blue line in dark blue forecolor. How can I change it? 回答1: Its apparently not possible. There was a discussion about the ability to change the group header font/style several years ago. I don't know if that still represents the actual situation, but I wasn't able to come up with a solution when I was looking for it several weeks ago. Even using the undocumented ListView API

Bind .xml file to treelistiview in objectlistview

此生再无相见时 提交于 2019-12-12 03:38:33
问题 I have to bind xml to Treelistview in Objectlistview TestSuite.xml <TestSuite> <TestCase name="TestCase" UID="" State="" DataSourceId=""> <TestModule name="Recording" State="Checked" UID=""></TestModule> <TestModule name="Recording1" State="Checked" UID=""></TestModule> </TestCase> <TestCase name="TestCase" UID="" State="" DataSourceId=""> <TestModule name="Recording" State="Checked" UID=""></TestModule> <TestModule name="Recording1" State="Checked" UID=""></TestModule> </TestCase> <

ObjectListView elapsed time column Potentially needs Multi-Threading

回眸只為那壹抹淺笑 提交于 2019-12-11 21:04:53
问题 I should first mention I am new to programming. I will explain my problem and my question to the best of my ability. I was wondering if it is possible to update a single column of an ObjectListView (from here on referred to as OLV). What I would like is to have a column that would display the "Elapsed Time" of each row. This Elapsed Time column would be refreshed every 15 to 30 seconds. How I set my OLV myOLV.SetObjects(GetMyList()); GetMyList method returns a list populated from a simple

Word wrapping in a ListCtrl (or ObjectListView)

若如初见. 提交于 2019-12-11 11:52:24
问题 I have a wxListCtrl (Actually it's an ObjectListView), set with LC_REPORT with two columns. Is it possible to word wrap the first column of text when it reaches the end of the column? 回答1: It's not possible with a ObjectListView (see their FAQ), because ListCtrl doesn't support multiline entries. It is possible, however, using UltimateListCtrl import wx from wx.lib.wordwrap import wordwrap import wx.lib.agw.ultimatelistctrl as ULC class Frame(wx.Frame): def __init__(self, *args, **kw): wx

How to make ObjectListView work in obfuscated code?

本小妞迷上赌 提交于 2019-12-11 07:43:49
问题 ObjectListView stops working when i obfuscate the code. The issue seems to be centred around using AspectName to set the column in MainForm.designer.cs E.g: this.olvColumn1.AspectName = "Name"; The Obfuscator could be renaming all my methods. Any advice on how to fix this issue? 回答1: AspectName is obviously using the name of the property, which is defeated by obfuscating. You'll have to install an AspectGetter delegate instead: this.olvColumn1.AspectGetter = delegate(object x) { return (

Exception when adding list to ObjectListView

删除回忆录丶 提交于 2019-12-11 03:46:32
问题 I just started with ObjectListView, and I am trying to replace the ListView I used before in my application. I managed to build a list using the following type I made: public class Record { public bool IsActive = true; public Record(string barcode, string info, string desc) { this.barcode = barcode; this.info = info; this.desc = desc; } private string Barcode { get { return barcode; } set { barcode = value; } } private string barcode; private string Info { get { return info; } set { info =