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?
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()...
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()...
Solved. Adding the user that greengrass runs as to the group gpio fixed the issue.
I have learned a bit more. When I run commands in the cli as the greengrass user I get the errors. It definitely seems to be a hardware detection error that is happening but only when run a certain users.
Not running on a RPi! on Pi4B running AWS Greengrass
Perfect! Both worked.
I am using a RMC to edit a cell. I am capturing the model for that row by doing: cellDataBeingEdited = (ToolLocationItem)e.Model; I then change the data in the model. My issue is the OLV does not update while being edited. Am I doing the edit wrong? How do I get the objectListView to update? I have tried all manor of objectListView.Refresh(). Number two. How do I get rid of this menu?
Did you ever get this to work? If so, how?
No. I was going to give up and try to find something different. The NuGet package is great except for when you need help. Then it seems you need to be able to wait days. :(
ObjectListView is awesome!!! The downside of using it is no support, no ability to get somewhat timely answers when things don't work right. Sigh....
I am giving the treeListView a List<string> of string values. I see the five elements with the plus symbol next to them but no text is showing. What an I doing wrong?</string>
This does not seem to work for me: ObjectListView listView = (ObjectListView)sender; engIndex = listView.SelectedIndex; SaveEngData(); currentEP = (EngProject)listView.MouseMoveHitTest.RowObject; engSearchTextBox.Text = ""; engListView.SelectObject(currentEP, true ); FillEngDataFields(currentEP); engListView.Refresh(); I have a search that is high;lighting and filtering. The bottom item on the list would be off screen normally but when I filter it appears. If I click on that item I clear the search/filter...
I have a table that Entity Framework is getting data for: using (var context = new EngEntities()) { var query = from p in context.PartMasters orderby p.Id ascending select p; partListView.SetObjects(query); } I want to be able to click in a cell, change the value of the cell and have that change update the underlying table. The only way I understand how to do this is to get the value of the cell that was changed using an event and then update the row in the table using a query and context.savechanges....
I have a textbox. When text is entered it fires the event handler below. The matched text is highlighted (I do not have any code added to make it highlight) but the rows that do not have matches do not disappear. My code: private void FilterList(object sender, EventArgs e) { TextBox tb = (TextBox)sender; fastDataListView1.ModelFilter = TextMatchFilter.Contains(fastDataListView1, tb.Text); fastDataListView1.Refresh(); }
LOVE this work! Thank you for the hard work! I have an ObjectListView and I have added a column to the list of columns. I used DisplayIndex to set the order of the columns and in design view on the form the columns are displayed correctly. When I run my code the column with a value of 1 for DisplayIndex displays last. I have the following columns: Their order in OLVColumnCollectionEditor: Name 0 Age 1 Assignee 2 Est Arrival 3 Status 4 Customer 5 Salesperson 6 Sales Coordinator 7 They display: Name...
I was looking for the same info, this link is broken.
Thanks Phillip. By the way...awesome software! I really appreciate the time it takes to do something like this. I changed to CellEditFinishing and same result. What I think I have found is this does not work: if (e.NewValue != e.Value) and this does: if (!e.NewValue.Equals(e.Value))
I am trying to detect if a cell value has changed so I can write a certain value in a database table. I see there is a CellEditFinished event and the CellEditEventArgs even has a .Value and .NewValue. My problem is that when I test for if they are not equal it tests (often) that they actually are equal: if (e.Value != e.NewValue) { Console.WriteLine(e.Value.ToString() + ":" + e.NewValue.ToString()); } Even though e.Value and e.NewValue contain the exact same string they are testing as different....
Trying to add a filter for the list. I have a textbox and an event that does this when the textbox text changes: this.objectListView1.ModelFilter = TextMatchFilter.Contains(this.objectListView1, filterString.Text); I am getting the following error: System.ObjectDisposedException: 'The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.' I am using Entity Frameowrk to get the data for the list view. I fill my data when the form with the listview...
BUmp...
Trying to add a filter for the list. I have a textbox and an event that does this when the textbox text changes: this.objectListView1.ModelFilter = TextMatchFilter.Contains(this.objectListView1, filterString.Text); I am getting the following error: this.objectListView1.ModelFilter = TextMatchFilter.Contains(this.objectListView1, filterString.Text); I am using Entity Frameowrk to get the data for the list view. I fill my data when the form with the listview loads using a method for that. What is causing...
foreach (ListViewGroup item in objectListView1.Groups) { ... ???collaspe group ... }
I have used the ObjectListView correctly. Kudos for the great idea and work! I am pulling data from tables to feed to the control. When I do a double click on a record I need a value for one of the controls. From what I can tell I need to cast "object sender" to a usable form. I can do the following reflection in the event handler. Is there a better, more readable, understandable way? Pulling data by Linq (Entity Framework): private void LoadFirstParts() { using (var context = new Entities()) { var...