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. DataGrid always capture the arrow keys of it child controls (VB.NET, VS2008)

DataGrid always capture the arrow keys of it child controls (VB.NET, VS2008)

Scheduled Pinned Locked Moved Visual Basic
csharp
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.
  • T Offline
    T Offline
    trinh nguyen
    wrote on last edited by
    #1

    Hi, After tested with ComboBox, TextBox, Button as DataGrid child controls (Using DataGrid1.Controls.Add), I found that when all arrow keys pressed were capture by the DataGrid. I.e.: - When I click on the ComboBox and then use the arrow (Up or Down) keys to move through the ComboBox items, the DataGrid1 handles it and I cannot move in the ComboBox, the ComboBox close its drop-down list, lost focus. Additionally, the DataGrid move to another item of its - When set focus on the button or text box and then use the arrow keys, the same as above happened I don't know why. I just want to know why, the root cause. Are there any formal documents said that, please show me. Thanks in advance!

    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