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...
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...
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...
Hi I have been using it for years, and its based on the listview, how do you want to add things ?
Hi Pill and Others. Its been a while, and to be honest i just could not get this to work so ended up using Check marks on any column but 0. Well i get stuck again, so stared re-reading the cook book, and ended up googleing my own artical. 4 years and i only just saw that phill was referancing "CheckedAspectName" and not "AspectName" which i was doing.. so not working, So thanks Phill for the correct answer, it just shows, sometimes re-reading your own articals can pay off. Ow and just for clarity...
Ok Why does this allways happen, you wait weeks trying to get something to work, you then ask for help and within minuites you fix it ! So if you to are having this issue... check your CanExpandGetter If row.ChildObj.count > 0 Then Return True 'Has Children Else Return False 'Last Node in level End If Simple when you put your mind to it time to check my other code ....
I have a Objecttreeview with 1 level of child nodes I would like to have all the nodes expanded on display, so i add all objects and children and call ExpandAll but the last node in each tree shows a box with a dash (implying it can be expanded) i have also tried looping each and expanding but both methods show the same issue. if i manually expand they are fine ' Loop each and expand top node Dim expanded = New List(Of TreeObj)() For Each o As TreeObj In JobList.Objects If o.Parent Is Nothing Then...
"CheckStateGetter " Thanks for the nudge, thats got things working now ! Sorry its...