select row not working

hi,



the following code is not working in a grid:



lookupsGrid.addRow(lookupID,lookupID);

lookupsGrid.selectRowById(lookupID);



the row gets added ok but it is not being selected, no error is being displayed it is just not selecting it.



i have also tried:



lookupsGrid.selectRow(lookupsGrid.getRowIndex(lookupID));



the grid is also being using the xml smart rendering if this makes any difference



thanks

The problem may occur if you are using non-unique ID - please be sure that lookupID is unique and not equal to 0.