what could be wrong?
The number of columns
Actually the number of columns in the grid is populated dynamically. Iam not sure how many columns will be populated in the grid beforehand.
SImilarly the width of the ADg is also set dyanmically by calculating the width of each column and then populating.
i have set the horizontalscrollpolicy to On and height and width of the ADG as 100% in the MXML.
<mx:AdvancedDataGrid horizontalscrollpolicy="on" height="100%" width="100%"/>
How should i fix this?
do not set width dynamically if you have it set 100% already
If i dont set width dynamically all the columns will have the same width. That should not happen since the width of different columns is set differently in the Database and we need to display the columns in that width.
So i cant remove the dynamic setting of width of the ADG. As a next step i tried removing the width="100%" then no horizontal scroll bar is shown at all.