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
955
how to make the current cell accept input without the mouse cliking
posted


when the cell get the focus,it can not be edited right now,It must be clicked by mouse then it can be input,I want to the current cell can accept input when it's active cell.

could you help me on it? thanks!

Parents Reply
  • 955
    posted in reply to Tramp

    Amiram Korach , accroding your suggestion, it doesn't work fine.

     I have added below code in the ultraGrid1_InitializeLayout event,

     this.ultraGrid1.KeyActionMappings.Add(new Infragistics.Win.UltraWinGrid.GridKeyActionMapping(System.Windows.Forms.Keys.Enter, Infragistics.Win.UltraWinGrid.UltraGridAction.NextCell, Infragistics.Win.UltraWinGrid.UltraGridState.IsCheckbox, 0, 0, 0));

     

    All I want to do as below:

    I finish inputting in one cell, I press Enter key , then the cursor enter the next cell, so I want I can directly input in the cell without clicking current cell beforehand. but in fact I need to click the current cell, it can accept user input,(if you use Tab key make the cursor enter the next cell, it can be directly input)

     

    How to set or write the code?

     

Children