Master/Detail GridView - issue with the some keys not working
-
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?
-
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?
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
-
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
-
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?
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