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. .NET (Core and Framework)
  4. Master/Detail GridView - issue with the some keys not working

Master/Detail GridView - issue with the some keys not working

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharphelptutorialcss
4 Posts 2 Posters 3 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.
  • J Offline
    J Offline
    Jo_vb net
    wrote on last edited by
    #1

    For an article I wanted to create a VB.Net demo project with Master/Detail GridView and RichTextColumn. Parts of my demo project are taken from CP articles about Master/Detail GridViews. But most of them have the issue with the keys not working on the childView - that prevents moving through the child grid with arrow keys. Same happens with keys page up/down and pos1/end. Example: DataGridViewExtension[^] Instead of navigating through the childView those keys let you navigate through the Main/Parent Form. There is only one without that issue - but in C# and I do not understand how the issue is fixed there: Master Detail Datagridview in C#[^] That's why I tried to do the childView with my own subForm, but that was no good idea. Today I could migrate that C# project (without the issue) to vb and got it working - without the keys issue. But still cannot see the reason for the keys issue and why all works in the Master Detail Datagridview in C#. Any ideas what causes the keys issue and how to fix it?

    L 1 Reply Last reply
    0
    • J Jo_vb net

      For an article I wanted to create a VB.Net demo project with Master/Detail GridView and RichTextColumn. Parts of my demo project are taken from CP articles about Master/Detail GridViews. But most of them have the issue with the keys not working on the childView - that prevents moving through the child grid with arrow keys. Same happens with keys page up/down and pos1/end. Example: DataGridViewExtension[^] Instead of navigating through the childView those keys let you navigate through the Main/Parent Form. There is only one without that issue - but in C# and I do not understand how the issue is fixed there: Master Detail Datagridview in C#[^] That's why I tried to do the childView with my own subForm, but that was no good idea. Today I could migrate that C# project (without the issue) to vb and got it working - without the keys issue. But still cannot see the reason for the keys issue and why all works in the Master Detail Datagridview in C#. Any ideas what causes the keys issue and how to fix it?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The "parent key" is used to filter children in the "child view"; that's it. Every time the selected parent changes, a new set of children is retrieved or filtered using the parent key. That's the pattern. How people choose to abuse it, is another matter.

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      J 1 Reply Last reply
      0
      • L Lost User

        The "parent key" is used to filter children in the "child view"; that's it. Every time the selected parent changes, a new set of children is retrieved or filtered using the parent key. That's the pattern. How people choose to abuse it, is another matter.

        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

        J Offline
        J Offline
        Jo_vb net
        wrote on last edited by
        #3

        I probably do not understand what mean - why should an 'Id'-Key which filters the datasource of the childView control have any effect on the function of the 'Keyboard'-Keys for the childView control?

        L 1 Reply Last reply
        0
        • J Jo_vb net

          I probably do not understand what mean - why should an 'Id'-Key which filters the datasource of the childView control have any effect on the function of the 'Keyboard'-Keys for the childView control?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It doesn't. Where did I mention "key board"? If your problem is that your "app" is not behaving as "expected", it's because you've either hooked up something wrong, or didn't when you should, or defeated it's default behavior. I was telling you what "should" happen. You implement parent-child relations; they don't just "happen". (And VB had "navigation controls" that c# never had).

          It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

          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