Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
Ultratoolbarsmanager toolclick event being fired multiple times
posted

Hi guys,

The problem is like this. I have a ultragrid and i want to be able to right click on it and get a menu. Done that. I  used a Ultratoolbarsmanager to do this. The toolclick event is like this:

private void utmTrans_ToolClick(object sender, ToolClickEventArgs e)

{
    switch(e.tool.Key)
    {
        case "Delete":
            if(MessageBox.Show("Are you sure you want to delete row?","Delete Row",......) == DialogResult.Yes)
            {
                //Delete ROW
            }
            Break;
    }
}

now when the message displays and i choose "NO" the event is called again and again. sometimes up to 5 times, and i have to keep clicking NO. I sure that is not how it's suppose to operate.

I need your help in solving this one.

Thanks in advance.