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 7174689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:06:38+00:00 2026-05-28T16:06:38+00:00

I want to create grid in WPF, which is dynamiccally grows depending on the

  • 0

I want to create grid in WPF, which is dynamiccally grows depending on the array length that is in the view model. So in view model I have three props:

public string[] HorisontalNames {get;}
public string[] VerticalNames {get;}
public double[,] Values {get;set;}

Is that possible? I want it to be simple for view model.

  • 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-28T16:06:38+00:00Added an answer on May 28, 2026 at 4:06 pm

    You would need to remodel your data a bit in your view model, and you can use a solution such as the one provided by Meleak at https://stackoverflow.com/a/4379965/248164.

    This attached property will let you bind your DataGrid columns to a collection of DataGridColumn on your view model. These will be your horizontal names.

    The vertical names will be the values of the first column.

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

Sidebar

Related Questions

I want to create a property grid (the one which is similar to the
I want to create custom WPF control that has a single child control inside.
I created a grid in procedural code on my WPF page. Now I want
I want to create a really easy to use 2D Grid. Each cell in
i want create image animation , i have 50 images with png format now
I want to create a function that performs a function passed by parameter on
I want to create a simple http proxy server that does some very basic
I am trying to create a custom user control in WPF. I want to
I have an ActiveX control (written in Delphi) which I want to host in
I need a help about creating custom wpf controls.I want to create a template

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.