View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Mon Oct 03, 2005 1:37 pm Post subject: Bug in relation with CellEditor/CellEditor Control |
|
|
Hello Support
I hope i can explain this strange bug:
The logic that creates a new instance of the Cell Editor (Control) is wrong. It seems that VT uses the Visible Row Index to create a new instance of the Cell Editor (Control).
Assume you have 100 Rows. On the Column "MyColumn" you have a CellEditor with a TextBox.
Now click on the first ten Rows in the Cell for the Column "MyColumn". VT creates 10 new TextBoxes.
Now scroll VT up until Row 6 is the first visible Row. Click the Cell for Column "MyColumn" on Row 11. Vt does not create a new Instance of the TextBox. VT begins to create new instances on Row 16.
Best Regards
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Oct 04, 2005 5:39 am Post subject: |
|
|
Virtual Tree does not create a new editor control each time you edit a cell - if it did you would quickly run out of resources when using display mode always cell editors. Instead it caches controls and reuses them once the containing CellWidget is disposed of (when it is no longer displayed). I think this is what you are describing??
This shouldn't have any impact on your code - what are you trying to do? _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Tue Oct 04, 2005 7:30 am Post subject: |
|
|
I thought a Control gets created for each CellEditor. Now that I know how it works I will change my Control in a way it does not affect my application.
Thanks Giuseppe |
|
Back to top |
|
|
|