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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:50:08+00:00 2026-06-11T04:50:08+00:00

How to get the cell value of a datagrid in MVVM.i am not selecting

  • 0

How to get the cell value of a datagrid in MVVM.i am not selecting anything just i want the value of 2nd row first column.

  • 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-11T04:50:10+00:00Added an answer on June 11, 2026 at 4:50 am

    Normally your Datagrind is bound to a Property on your Viewmodel. simply access that Property in your Viewmodel and get the Values you need.

    In ViewModel you have a Property:

     public ObservableCollection<Characteristic> Items{get;set;}
    

    Characteristics Class

    public class Characteristic : ObservableObject
    {
        private string _name;
    
        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                RaisePropertyChanged("Name");
            }
        }
    
    }
    

    In XAML:

      <DataGrid Margin="0" Grid.Row="1" ItemsSource="{Binding Items}" AutoGenerateColumns="True" />
    

    You just access the Items Property on your ViewModel and get the second item of the Collection.

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

Sidebar

Related Questions

hello i'm trying to get the first value of a datagrid cell value but
Using VB.Net I want to get a all datagrid cell values, then insert into
I want to get each cell value from an HTML table using JavaScript when
I have a datagrid which has five columns. i want the cell's value selected
I'm trying to get a value from a cell in my datagrid, the code
I'm attempting to get the cell value from a gridview but running into a
I need to get(retrieve) updated cell value in controller. (MVC) So I tried this,
I am trying to get a cell value from the selected item of a
I have to access the value that underlies the active cell of a DataGrid
I'm trying to use the following JavaScript function to get a particular cell value

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.