I use TreeListView
component from ObjectListView
library. I make cell values editable and when i double click on them TextBox
will appear with odd offset.
I want to remove this offset, but how?
As you can see first row, second column ("My new device"), TextBox
is appeared with offset.
P.S. Editing work as expected. Only offset is annoying me
P.P.S. As you can see the offset depends of first column offset. How i can change it to zero?
After long searches i found solution!
Source code of OLV, ObjectListView.cs
I saw
CellEditEventArgs
containsControl
, that drawed in area namedBounds
.This function in the source file append offset to control's bounds:
We can see, that offset appending to every cell (not only first). Also we can se, that
CellEditEventArgs
containsCellBounds
.So we can just reset
Control.Bounds
toCellBounds
value: