DATAGRID VERTICAL BAR

gys need to implement a vertical bar to avoid having to go to the last column in datagrid to display the first column

I can not utrapassar datagrid width of 341 px

I WANT TO SEE ALL RECORDS OF THE FIRST COLUMN, BUT I HAVE TO GO TO THE LAST COLUMN ONLY BECAUSE THERE IS A BAR TO SCROLL DOWN VERTICAL GRID ROLLING DOWN BUT I CAN NOT SEE THE REGISTRATION OF FIRST COLUMN, THE BAR IS IN PLACE AS CANVAS THE BAR AND THE MOVE IT MOVE RECORDS datagrid?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute"
        verticalAlign="middle"
        backgroundColor="white" color="#000000" fontWeight="bold">

    <mx:ArrayCollection id="arrColl">
        <mx:source>
            <mx:Array>
                <mx:Object label="Student A" score="85" />
                <mx:Object label="Student B" score="48" />
                <mx:Object label="Student C" score="71" />
                <mx:Object label="Student D" score="88" />
                <mx:Object label="Student E" score="24" />
                <mx:Object label="Student F" score="64" />
                <mx:Object label="Student G" score="76" />
                <mx:Object label="Student H" score="76" />
                <mx:Object label="Student I" score="93" />
                <mx:Object label="Student J" score="88" />
                <mx:Object label="Student K" score="48" />
                <mx:Object label="Student L" score="76" />
            </mx:Array>
        </mx:source>
    </mx:ArrayCollection>
    <mx:Canvas x="163" y="297" width="341" height="189">
        <mx:DataGrid id="dataGrid0" dataProvider="{arrColl}" x="0" y="0" width="1000">
            <mx:columns>
                <mx:DataGridColumn dataField="label"  />
                <mx:DataGridColumn dataField="score" editable="true" />
                <mx:DataGridColumn dataField="label"  />
                <mx:DataGridColumn dataField="score" editable="true" />
                <mx:DataGridColumn dataField="label"  />
                <mx:DataGridColumn dataField="score" editable="true" />
                <mx:DataGridColumn dataField="label"  />
                <mx:DataGridColumn dataField="score" editable="true" />
                <mx:DataGridColumn dataField="label"  />
                <mx:DataGridColumn dataField="score" editable="true" />
            </mx:columns>
        </mx:DataGrid>
    </mx:Canvas>
    <mx:Label x="163" y="80" text="PROBLEM 1"/>
    <mx:Label x="163" y="271" text="SOLUTION PARCIAL"/>
    <mx:DataGrid id="dataGrid" dataProvider="{arrColl}" x="163" y="106" width="341">
        <mx:columns>
            <mx:DataGridColumn dataField="label"  />
            <mx:DataGridColumn dataField="score" editable="true" />
            <mx:DataGridColumn dataField="label"  />
            <mx:DataGridColumn dataField="score" editable="true" />
            <mx:DataGridColumn dataField="label"  />
            <mx:DataGridColumn dataField="score" editable="true" />
            <mx:DataGridColumn dataField="label"  />
            <mx:DataGridColumn dataField="score" editable="true" />
            <mx:DataGridColumn dataField="label"  />
            <mx:DataGridColumn dataField="score" editable="true" />
        </mx:columns>
    </mx:DataGrid>

</mx:Application>

Open in new window

eduardo12foxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgofmanCommented:
Your problem solving easily by setting explicite width for DataGrid Columns and enabling horizontalScrollPosition (auto) and removing Canvas wrapper, but I have two questions:
1) Why are you using Canvas (es)?
2) Why you are hardcoding x and y instead using VBox container?

....

	<mx:DataGrid id="dataGrid0" dataProvider="{arrColl}" 
				 x="163" y="297" width="341" height="189" horizontalScrollPolicy="auto">
		<mx:columns>
			<mx:DataGridColumn dataField="label" width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label"  width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label" width="50" />
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label"  width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label" width="50" />
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
		</mx:columns>
	</mx:DataGrid>
	<mx:Label x="163" y="80" text="PROBLEM 1"/>
	<mx:Label x="163" y="271" text="SOLUTION PARCIAL"/>

....

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dgofmanCommented:
	<mx:DataGrid id="dataGrid0" dataProvider="{arrColl}" 
				 x="163" y="297" width="341" height="189" horizontalScrollPolicy="auto">
		<mx:columns>
			<mx:DataGridColumn dataField="label" width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label"  width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label" width="50" />
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label"  width="50"/>
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
			<mx:DataGridColumn dataField="label" width="50" />
			<mx:DataGridColumn dataField="score" editable="true" width="50"/>
		</mx:columns>
	</mx:DataGrid>
	<mx:Label x="163" y="80" text="PROBLEM 1"/>
	<mx:Label x="163" y="271" text="SOLUTION PARCIAL"/>
	<mx:DataGrid id="dataGrid" dataProvider="{arrColl}" x="163" y="106" width="341" horizontalScrollPolicy="auto">
		<mx:columns>
			<mx:DataGridColumn dataField="label"  />
			<mx:DataGridColumn dataField="score" editable="true" />
			<mx:DataGridColumn dataField="label"  />
			<mx:DataGridColumn dataField="score" editable="true" />
			<mx:DataGridColumn dataField="label"  />
			<mx:DataGridColumn dataField="score" editable="true" />
			<mx:DataGridColumn dataField="label"  />
			<mx:DataGridColumn dataField="score" editable="true" />
			<mx:DataGridColumn dataField="label"  />
			<mx:DataGridColumn dataField="score" editable="true" />
		</mx:columns>
	</mx:DataGrid>

Open in new window

eduardo12foxAuthor Commented:
dgofman Thank you very much was what I needed! I can always rely on their solutions Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.