Trouble with my DataGrid component (aDg), i want to tell it to got a fixed height, and then have a scrollbar when the lines into the Datagrid are biger than its height, but with this code, it doesn’t work, the grid continues to get bigger without scrollbar :
myDP= new DataProvider(fileXML);
aDg.dataProvider = myDP;
aDg.columns = [nameCol, numCol, prixCol];
aDg.verticalScrollPolicy = ScrollPolicy.ON;
aDg.width = 300;
aDg.height = 40;
aDg.rowCount = aDg.length;
note that this code works well if I wanted Horizontal scroll bar by replacing
aDg.verticalScrollPolicy = ScrollPolicy.ON;
by
aDg.vhorizontalScrollPolicy = ScrollPolicy.ON;