Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. TAB or Enter key in DataGrid

TAB or Enter key in DataGrid

Scheduled Pinned Locked Moved Visual Basic
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fiaolle
    wrote on last edited by
    #1

    Hi I have made my DataGrid move to the next cell on TAB and Enter (the code below) and it works fine, but when standing in the first cell on the new row (last row) and pressing TAB or Enter the cursor moves to the second cell on the PREVIOUS row and not the new row. Why? And if I MOUSE_CLICK in the first cell on the new row, I can press TAB and it works fine. Is there a way I can make pressing the TAB to the new row work like Mouse_Clicking the new row?? Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal Keys As System.Windows.Forms.Keys) As Boolean If (msg.WParam.ToInt32() = CType(Keys.KeyCode.Enter, Integer)) Then Keys.Send("{Tab}") Return True End If Return MyBase.ProcessCmdKey(msg, Keys) End Function Please HELP!!! Fia

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups