issue with CellEditUseWholeCell on TreeListView
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
Hello,
As I can see there is an issue with cells editing on the TreeListView. I have enabled the properties CellEditUseWholeCell for Columns and for whole control.
The result:
But the first column has whole cell editor:
Is this a bug?
Regards,
Alex.
error pic 1

error pic 2

These are two files I modified in standard Demo (from ObjectListViewFull-2.9.1.zip) for you can reproduce the issue on your side.
If I copy those two files into my demo project and run it, the editing rectangle always covers the whole cell, as I would expect. Screenshots attached.
Do you have any other code changes that might be influencing the controls behaviour?
Last edit: Phillip Piper 2020-11-28
No, I haven't. For check this I download the ObjectListViewFull-2.9.1.zip again and compare all files. The only files differ from original I sent you previously.
My environment: Win7, Visual Studio 2017, ObjectListView was installed by NuGet as ObjectListView.Official (v2.9.1)
Hi Phillip,
Any updates for me?
Regards,
Alex.
I've been bugged by this for a while, and seeing I'm not the only one I found a solution:
I had to do this way:
If you are using CellEditUseWholeCell = true; you should also add
e.Control.Width += offset;