dojox.grid.DataGrid - Search for item

This is one way to search a dojox DataGrid for an item.

In this case, the id is used, but other attributes can be searched as well.

function already_in_the_grid(id)
{
         return dojo.some(member_store._getItemsArray(),(function(item){if (item.id==member_id) return true}));
}