Added handler of datagrid items.