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
60
ultragrid not reacting to KeyPress/KeyDown event
posted

L.S.

I have an ultragrid which, by a user action, is bound to a particular bindingsource. Everything works fine. However, I have to click on a row (CellClickEvent = RowSelect) in order to make the KeyPress/KeyDown event work, and that's not desirable.

I have tried the following, without success:

- UltraGrid:Select().

- UltraGrid:Focus().

- UltraGrid:DataBind().

- UltraGrid:PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:ActivateCell).

- UltraGrid:ActiveRow = StatusBarGrid:Rows:Item[0]. followed by UltraGrid:Selected:Rows:Add(UltraGrid:ActiveRow).

TIA.

Will

Parents
  • 21795
    Offline posted

    Hello Will,

    Thank you for posting in our forum.

    I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have created a small sample project with a grid and one button. On button click I am calling UltraGrid.Select() or UltraGrid.Focus() methods. Then I pressed some keys on the keyboard and both KeyPress and KyeDown events got fired.

    I have attached the sample project I used to test this.  Please test this project on your PC and let me know if you succeed to reproduce this issue.

    If the project does not work correctly, this indicates either an issue possibly specific to your environment, or a difference in the DLL versions we are using.  My test was performed using version 15.1.20151.2141 in Infragistics Controls for Windows Forms Version 15 Volume 1. So could you please let me know the exact version of Infragistics components which you are using?

    If the project does show the product feature working correctly, this indicates a possible issue in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing, or if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back.

    Please let me know if I can provide any further assistance.

    Thank you for using Infragistics Controls.

    CAS-159732-J2H8S6.zip
Reply Children
No Data