Nadeem, I didn't expect someone to try to open the datagrid again if it was already open. No big deal though all you have to do is add this one line:private function showGridResults():void
{
try
{
if(gridFields.length == 0){
showMessage("No Datagrid configured for this layer", false);
return;
}
if(!myfloatdg){
myfloatdg = SearchWidgetFloatDG(PopUpManager.createPopUp(map,SearchWidgetFloatDG,false));
PopUpManager.centerPopUp(myfloatdg);
}else{
PopUpManager.removePopUp(myfloatdg);
PopUpManager.addPopUp(myfloatdg,map,false);
PopUpManager.centerPopUp(myfloatdg);
}
...