Andrea,1. I have not seen any ability to do that with a datagrid but you could use a datagroup and an custom itemrenderer.2. Add these lines to the init function: (document.getElementById('Andrea').focus(); 'Andrea' has to be replaced with your applications name i.e. the name of the main.mxml. navigateToURL(new URLRequest("javascript: document.getElementById('Andrea').focus();"), "_self");
//Now give the focus to the first input
inCity.setFocus();
and change this line:<s:TextInput id="inCity" text="Billings" enter="locate()" />
3. <s:Scroller height="100%" width="100%">
<s:Group>
<mx:VDividedBox height="800" width="100%">
<s:VGroup height="100%" width="100%">
<mx:Image source="assets/images/newheader.jpg"/>
<s:Label text=" Step 1: Enter the address that you are intrested in below. Then Click Locate."/>
<s:HGroup verticalAlign="middle">
<s:Label text=" Address:"/>
<s:TextInput id="inAddress" text="306 Washington" />
<s:Label text="City:"/>
<s:TextInput id="inCity" text="Billings" />
<s:Button id="locateBtn" label="Locate..." click="locate()"/>
</s:HGroup>
<s:Label text=" Step 2: Click on a row in the grid to get details on the location. The Geocode Score is a percent of how closely your address matches the address listed." />
<esri:Map id="map" zoomSliderVisible="false" height="100%">
<esri:ArcGISDynamicMapServiceLayer
url="http://gis-server.greatriv.com/ArcGIS/rest/services/ChristianCo/ChristianCo_Clerk/MapServer"/>
<layers:GraphicsLayer id="graphicsLayer" graphicProvider="{queryTask2.executeLastResult.features}" symbol="{pollSym}"/>
</esri:Map>
</s:VGroup>
<mx:DataGrid id="resultsGrid" itemClick="onItemClick(event)" width="100%" height="87">
<mx:columns>
<mx:DataGridColumn headerText="Id" dataField="id" visible="false"/>
<mx:DataGridColumn headerText="Address" dataField="address"/>
<mx:DataGridColumn headerText="Geocode Score" dataField="score"/>
<mx:DataGridColumn headerText="Polling Place" dataField="polling"/>
</mx:columns>
</mx:DataGrid>
</mx:VDividedBox>
</s:Group>
</s:Scroller>