mydatagrid

package
{
import mx.controls.DataGrid
import flash.display.Sprite
public class MyDataGrid extends  DataGrid
{
public function MyDataGrid()
{
super();
}
override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
{
if (rowIndex > 5 && rowIndex <11) {color =  0x999999;}
super.drawRowBackground(s,rowIndex,y,height,color,dataIndex);
}
}
}

你可能感兴趣的:(Flash)