Update datasource using toolbar button

i have a datagrid bound to table in a database. when i try to update datasource using update command of dataadapter it fail to update if this code written in a toolbar button although this code executed correctly if it placed in a button

Loader.
Up arrow icon