Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI guess this is the only way, I'll keep the question opened for a while, maybe someone will come up with something, otherwise accept this. Just a sidenote: The grid is capable of generating extra columns automatically (AutoGenerateColumns property). But that wouldn't work or lists of course. The question is, would the whole binding thing work with annonymous classes? Or better - is it using reflection to generate the extra columns? I could create a class on the fly for the data, but that may be even worse it terms of maintainability and readability...
      singulars
    2. COI know it's not ideal... M-V-VM has grown so substantially since this control was originally authored that I'm sure there will be a version at some point in the future that exposes Columns as a DP. Until then I guess we have to choose the most pragmatic solution.... cheers,
      singulars
    3. COI know this is old, but I have noticed that, depending on the OS (and perhaps whether .Net 4.5 is installed or not, even when targetting .Net 4.0), setting AutoGenerateColumns=true does in fact use reflection with Windows 7. Thus, you can return an IEnumerable<Object> (or dynamic) (which List<Object> impliments, by the way) and have DataGrid generate the columns, even from an anonymous type. However, if you expect this to run on XP, then you will need to, in some way, right your own code to generate the columns dynamically.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload