Thanks a lot :-)
One question more... it is possible sort after start olv another column than
first...
I dont find possibility that programaticaly change sorted column...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a lot of trouble using ClearObjects() with a TreeListView and spent a
lot of time debugging the issue ( I though ) from my part of code. Finally I
digged into the source and found out that this method simply call SetObjects
with an empty List. It should work. However, there're also the
mapObjectToBranch and the mapObjectToIndex dictionaries to reset otherwise you
will have funny results trying to update data to a TreeListView. For testing I
reset those two dictionaries when the SetObjects is called and it works
nicely. I don't know if this is a bug or it was intended that way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
all data or all row...
I have some List<type> data
I add this list to ObjectListView object olv by </type>
.....
olv.SetObjects( data)
all is OK objects add to olv and show corectly
now i need completly clear
I tryiing
olv.Clear()
or
olv.SetObject(null)
but this don't working ?? or I making something wrong...
Try olv.Objects = null;
Clear() comes from ListView and is the nuclear option!
Thanks a lot :-)
One question more... it is possible sort after start olv another column than
first...
I dont find possibility that programaticaly change sorted column...
Clear() doesn't work for me, but this does:
olv.ClearObjects();
olv.Items.Clear();
olv.Columns.Clear();
But, that is when I'm using Generator.GenerateColumns().
Chris
I have a lot of trouble using ClearObjects() with a TreeListView and spent a
lot of time debugging the issue ( I though ) from my part of code. Finally I
digged into the source and found out that this method simply call SetObjects
with an empty List. It should work. However, there're also the
mapObjectToBranch and the mapObjectToIndex dictionaries to reset otherwise you
will have funny results trying to update data to a TreeListView. For testing I
reset those two dictionaries when the SetObjects is called and it works
nicely. I don't know if this is a bug or it was intended that way.
Now I haven't problem with clear ... all working very good
This were my firsteps problems :-)