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
165
Problem with the PerformAction method
posted

I have written the following codes:

----------------------

private void gridTest_BeforePerformAction(object sender, Infragistics.Win.UltraWinGrid.BeforeUltraGridPerformActionEventArgs e)
        {

                  ........................

        }

        private void gridTest_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Left)
            {
                this.gridTest.PerformAction(UltraGridAction.PrevCellByTab);
                e.Handled = true;
            }
        }

-------------------------

When I press the left arrow key, it doesn't enter the gridTest_BeforePerformAction method.

If anyone knows why, please tell me.

Thanks in advance.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    This is something of a gray area in event firing. If the user performs some action then you need an event to fire to tell you that they did so. If you perform an action in code, then you really don't need an event, because you already know you did it. So it looks like the event doesn't fire when you call PerformAction in code.  

Children
No Data