AX 2012 Filter the grid ??

hi all,

i want to filter the grid on the inventsiteid on the form saleslinebackorder form in ax2012

i had written the code to in execute query of the inventdim1 datasource , this form has duplicate datasource of salesline,

and salesline1, i am able to filter the grid while open the form , but problem is while i am modifing the siteid in the stringedit

control , the execute query using the same old query wth site id

and no data is changing on the grid…???

if any body know please help me

thanks,

srikanth