问题描述
您好,
我是一直在使用MVVM模式开发WPF应用程序。对于一个特定的步骤,我需要一个表(绿色矩形) 看起来像在图片上。前两列(红色矩形) 来自一个SQL查询,thoe是一个itemsouce。蓝色的一个,应该是
动态生成,因为在1-999范围内可以有列,这取决于其他一些东西。因此,在生成表格之后,我需要为
E43964666等提供 1 我该怎么办? ?我正在考虑使用CompositeCoolection和2个DataTemplates,一个用于源代码收集,但不知道哪个控件用于它。 ItemsControl或ListBox(查看)还是其他什么?我不需要解决方案,我需要一个
的帮助,一个提示。提前致谢。
Ladislav
Hi,
I've been developing WPF application using MVVM pattern. For one particular step i need a table(green rectangle) which looks like on the picture.First two columns(red rectangle) are from one SQL query,thoe are one itemsouce. Blue one, should bedynamically generated, becauce there can be columns in range 1-999, it depends on some other stuff. So after table is generated i need to put 1 for E43964666 etc. How should I do that? I'm thinking about using CompositeCoolection and 2 DataTemplates,one for source colection, but don't know which control use for it. ItemsControl or ListBox(View) or something else? I don't need a solution, I need a help, a hint. Thanks in advance for anything.
Ladislav
这篇关于可编辑的表有两个项目来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!