I have a grid that uses a needdatasource in which a xmldatasource is connected and i have a separate query-box, which uses a firecommand to update the grid using the xpath settings in the datasource. I have used this method, because now i can create a more complicated xpath method for selecting. I works fine, expect when the result for the the xpath selection is zero (no records found). Then the firecommand is not working, i think because the mastertable is not existing then. However the datasource itself always contains all the records, so the mastertable doesn't have to be empty. When i reload the grid with all the records, it works fine again. How can i solve this?