Is it posible to use a "Item command & PageIndexChanged" of datagrid control

simultaniously in a single program