Update datagrid when train is changed

Ticket:	#6300