How to create dialog box when i click the button in ax 2009?

I have the grid and a button im going to modify the grid by cliked event

here my problem is when i press that button i need to ask one alter message like “Would u like to update it?”

if i click ok it should update else it should not update

Please help me for this question

Im waiting

I found the answer this coding helped me to learn about dialog box

Dialogbutton db;
db = box::yesNo(“Choose Yes or No”, dialogButton::Yes, “Yes
No Box Example”);
if (db == dialogButton::Yes)
info( “We chose Yes”);
if (db == dialogButton::No)
info( “We chose No”);