 {
 import flash.events.MouseEvent;
 
+import mx.controls.AdvancedDataGrid;
+import mx.controls.listClasses.AdvancedListBase;
 import mx.controls.listClasses.BaseListData;
 import mx.controls.listClasses.IDropInListItemRenderer;
 import mx.controls.listClasses.IListItemRenderer;

    {
        event.stopPropagation();
		
		var adg:Object = listData.owner;
		var advancedDataGridListData:Object = listData;
        
        if (adg.isOpening || !adg.enabled)
            return;
        

            // and you should still be hovered, so we double check and override here.
            // then we get all the other state-related variables updated so the state
            // calculation will do the right thing.
            var listBase:AdvancedListBase = listData.owner as AdvancedListBase;
            if (listBase)
            {
                selected = listBase.isItemSelected(data);
