ColWidth problem in Tables

Discussion in 'Bug Reports' started by klaus, Feb 17, 2008.

  1. klaus

    klaus Expert Licensed User

    Hi Erel,
    In looking at Linecutter's problem to position a TextBos onto a selected cell in a table I found a problem with the ColWidth values.
    - when the user changes a column with, the ColWidth value is not updated.
    - when the user changes the ColWidth value, the value is changed, but not on the dispayed table.

    I joined LineCutters code and a XML file:
    I added in the code:
    - a Label that shows the width of the column of the selected cell.
    - a TextBox to change a value.
    - a Button that changes the column with of the "Date" column.

    Can you please have a look at it.

    Thank you in advace.
    Klaus
    Switzerland
     

    Attached Files:

    Last edited: Feb 17, 2008
  2. Erel

    Erel Administrator Staff Member Licensed User

    I see this problem.
    It will only happen after you load a XML table (unlike a CSV table which will work fine).
    We will further check it.

    BTW, using XML tables is not recommended as they are larger and slower than CSV tables.
     
  3. LineCutter

    LineCutter Active Member Licensed User

    Erel, I presume that you are referring to the loading/saving of the xml data, rather than the internal table representation.

    Klaus: It seems that the scrollbar control available in ControlsEx.dll might be a workaround... if the change in column width can trigger an event so that we know when to add the control, or we accept that it needs to be there all the time & for every table event we bring the scrollbar to the front, hiding the real one if it's being displayed.
    Haven't played with it yet, nor thought through the maths - that has to wait until we can tell if the total table (column) width has changed.
     
Loading...