Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8893981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:23:00+00:00 2026-06-14T23:23:00+00:00

I have a structure question about my project. Assuming i want this as a

  • 0

I have a “structure” question about my project. Assuming i want this as a result
http://msdn.microsoft.com/de-de/library/vstudio/ff407126.aspx , a DataGrid with “Projects” and every Project has several Tasks.

I already have a MainWindowViewModel + MainWindowView which displays the DataGrid with the Header-Lines.

For every Project I have a Project object which contains several Task-Objects.

How can i now split up the DataGrid into several ViewModels / Views?

The Problem is, later i will have different kind of tasks and the layout of the grid will slightly differ only for this task. (e.g. no Progressbar or different colors/text-bindings

Will I need a SchedulerViewModel(+View) and a ProjectViewModel(+view) for every Project and a TaskViewModel(+View) for every Task?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:23:01+00:00Added an answer on June 14, 2026 at 11:23 pm

    You’ll want to use templating. The DataGrid’s ItemsSource property should point to your collection of Project objects. Then you’ll want to assign a template to the DataGrid’s ItemTemplate property, describing the appearance of a “Project” object. Most likely the template for a “Project” row will be an ItemContainer of some sort; this ItemContainer will in turn have it’s own ItemsSource property set to the project’s collection of Tasks, which in turn will have it’s own item template through which you can describe the appearance of Tasks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about structure padding and memory alignment optimizations regarding structures in
I have a question about if - else structure in a batch file. Each
Following on from this question, I now have the following structure: Wolfie.Core - Contains
Preface: This question is about a project I am working on with a professor
I have a question about the structure of the source code from a cygport
I have an Eclipse project with the following directory structure: MyProj/ src/main/java/ com.me.myproject.widgets Widget.java
I post here because I question myself about the structure of a future project.
I have few questions about using lock to protect my shared data structure. I
I have a question about the use of data structures such as ArrayLists in
I have the follow structure (example): trunk/ branches/v1.0.0 branches/v1.0.1 tags/v1.0.0 My question is: The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.