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

  • SEARCH
  • Home
  • 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 6106783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:06:59+00:00 2026-05-23T14:06:59+00:00

This is a general question on user interface design and programming patterns, even though

  • 0

This is a general question on user interface design and programming patterns, even though my question comes from a WPF application I’m working on.

What is a clean, elegant pattern to present a data-driven user interface when the data model is hierarchical and the hierarchies are > 2 levels deep? By cleanest, I mean an approach that takes very little repetitious code (versus coding a form for every data model type), and requires little tedium. It might rely on reflection, for example. I guess this is why we have nested data grids. You could nest the child objects in the row details template. Nearly all LOB apps rely on hierarchical data, so someone must have solved this problem already.

But the problem with this is, what if the master grid has many different child detail grids? The user interface can look cluttered with detail grids, nested into the master grid and stacked on top of each other.

Some ideas I had might be to try a tab control, nested in the master grid. Another is to just open a new data grid in a new view and don’t nest the grids, but then again creating a new view for every grid seems like the tedious work I’m trying to avoid in the first place.

Is there a cleaner alternative to building a “text boxes over data” LOB application over a hierarchical data model besides coding each view (and viewmodel) one-by-one?

  • 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-05-23T14:07:00+00:00Added an answer on May 23, 2026 at 2:07 pm

    Fundamentally, this is a question about how to represent a tree. There’s not a lot of good consensus on this; it’s a tricky issue. Certainly, the approach of nested data grids is valid, but you hit the nail on the head when you describe it as potentially cluttered.

    To some extent, the answer to this question has to do with just how much information about the rest of the tree you need when you’re interacting at a given level. Do you really need to know about the root of the tree, and all of the children of the root, when you’re working with leaves two levels down? There are certainly use cases where you do, and in those cases, it makes sense to choose a representational structure that lets you see all of the children (as in your nested grid approach). In other cases, you don’t need to know much if any information about higher levels in the tree; in those situations, it makes perfect sense to isolate the presentation of lower data into its own presentation area (page).

    There’s all sorts of different approaches to just this problem. Have you seen prezi? It’s very impressive, and part of what makes it impressive is that there’s a sense of “place” to the data; it’s using human’s own spatial sense to help make sense of complicated data and hierarchies; the zooming really locks in that sense of spatial orientation (occasionally dis-orientation).

    In terms of your actual question; think of REST, and specifically of the HATEOAS expectation. In effect, consider modeling your data independent of the presentation, and then letting the presentation be a relatively thin layer, as opposed to a dense viewmodel. There might be some things that need tweaking, but most importantly, if the overall viewmodel needs tweaking, you can go back and modify it relatively easily. As well, the data model tends to imply a certain structure that makes sense with a given data set; effectively, it’s a matter of discerning structure from your data, and finding the display model that most appropriately fits that. By not committing boatloads of work to a strict viewmodel, you get the ability to change as necessary. Agile UI design, roughly.

    This stuff is very subjective, and it really depends on your organization and your needs; there’s no one good answer for every solution. Good luck; you’re at least asking the right questions!

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

Sidebar

Related Questions

This is not an Eclipse-programming question, but rather a question about the Eclipse user-interface
I am working in Python, but this is a general design question so general
I'm working on a RoR app, but this is a general question of strategy
This started out as a general user question on Android forums. However it's become,
This is a general question. The login control from the Membership Provider asks for
This is a general programming question, not pertaining to any specific language. A new
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question about MVC as a pattern, but in this case
This is a general question concerning technology decisions for a product development. My aim
This is a general question. And may not be specific to datagrids. How can

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.