Use dgrid event and set query instead of manual update

While I'm here remove unused modules.

Ticket:	#6300