DataGrid Vertical Scrolling

DataGrid Vertical Scrolling

Post by josh » Fri, 24 Jun 2005 10:53:00


Going crazy....

I have bound an ArrayList containing custom objects to the DataGrid and
for some reason it wont do scrolling. The columns of data are all
correct but it wont scroll...

If I make the physical size so that it is only big enough to show 3
rows and then I bind it to any array that has 20 the scroll bar is
still disabled.

What am I forgetting to do???
 
 
 

1. How to set up a vertical scroll bar for my datagrid control?

2. Vertical scroll bar in datagrid

There's not going to be a simple way to do it. I think your greatest chance of
success lies in 2 method overrides:

1) Override updateDisplayList() and position the vertical scrollbar after
calling super.updateDisplayList().
2) Override layoutRow(). This method takes a starting x position for the
items in the row (paramter is "xx"). Before calling super, add the width of
the verticalScrollBar to this value, like so:

override protected function layoutRow(more:Boolean,xx:Number,hh:Number):Number
{
if(this.verticalScrollBar && this.verticalScrollBar.visible)
{
xx += this.verticalScrollBar.width;
}
super.layoutRow(more, xx, hh);
}

Hope that helps.

3. Vertical Scroll problems - won't scroll back up to show first record in cont form

4. Vertical scrolling in Listview with "scrolling = false"

5. Mouse Scrolling Inside Standard Fields configured with Vertical Scroll Bar

6. Scrolling Vertical Scroll Bar Does Not Call OnVScroll

7. Vertical scroll changes to horizonal scroll, how to change it

8. Scrolling Vertical Scroll Bar Does Not Call OnVScroll

9. Treeview - I want to keep the Vertical Scroll Bar and eliminate the Horizontal Scroll Bar

10. Vertical scroll bar jumps scrolls line 1 to line 2705?

11. Editfields - Scrolling event and Vertical scroll in pixels?

12. Vertical scroll changes to horizonal scroll, how to change it back

13. Horizontal Scroll Bar -No, Vertical Scroll bar- Yes