2 Attachment(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...
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
2 Attachment(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
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