User Tag List

Results 1 to 5 of 5

Thread: Need help with DataGrid

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with DataGrid

    I have come to the conclusion that I may be daft. I can't figure this one out.

    Please consider the attached file. It contains a small program where you push buttons to add or remove lines from a DataGrid.

    PROBLEM: As you fill the DataGrid with lines the scroll bar appears. But you can only add about 16 lines before the scroll bar stops expanding to allow more lines to display. You can add lines beyond 16, but there's no way to see them!

    Am I doing something wrong? Could it be a bug? Any workarounds?

    Thanks!



    - Richard Pikk
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Aug 2007
    Location
    DK
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with DataGrid

    Hi Richard

    It has something to do with the height of the DataGrid! Strange thing, I do think I had the same problem back in MMF 1.5, You had to make the Datagrid bigger, like I did to show you how.
    And you see I work now, but plz tell CT this bug, it's very annoying...
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Aug 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with DataGrid

    Hi!

    Thanks for looking at my example. I can make more lines now, but the problem still persists (I can only make around 44 lines when it's at that size). It looks like it expands to about twice the height of the object, but no further.

    Maybe I need to get a really tall monitor.



    - Richard Pikk

  4. #4
    No Products Registered

    Join Date
    Aug 2007
    Location
    DK
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with DataGrid

    Hey I might can help you here .... do this

    Click on Properties Datagrid and go to content of datagrid and edit content - EDIT- then find the "Set number of lines" I picked 500 in this example. now you can force it to do it, see the effect by clicking the Add line button. vupti.

    Again I added an example
    Attached files Attached files

  5. #5
    No Products Registered

    Join Date
    Aug 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with DataGrid

    Thanks again for your reply!

    I agree, I could have done it like this as a workaround. It might be possible to set the list to 500 (or any large number) lines and then deleted most of them at runtime, maybe the grid would have retained its initial dimensions.

    However, I believe that I have found another way to fix it. The problem seems to be connected somehow with the total width of the columns in the grid. I originally gave the object a width of 400 pixels, and then divided that amount among the columns to be displayed (minus a few pixels to accomodate the scroll bar). I now tried reducing the width of the second column slightly, and for some reason the scroll bar now appears to be working correctly. In the example there is an event that makes the second column 358 pixels wide. If you change it to 341, the bar works propery. If you add one pixel and make it 342, it doesn't work.

    Sounds strange to me!



    - Richard Pikk

Similar Threads

  1. Datagrid object and other objects: Getting other objects to overlap datagrid order.
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th August 2013, 05:38 AM
  2. Datagrid Bug (2.)
    By Czentnar in forum Extension Development
    Replies: 12
    Last Post: 5th March 2010, 11:12 AM
  3. Datagrid bug
    By Czentnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 31st July 2009, 05:01 PM
  4. Datagrid, add new column.
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th May 2009, 11:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •