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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:46:01+00:00 2026-05-28T03:46:01+00:00

I have a DataGrid in my WPF application. I was wondering if there is

  • 0

I have a DataGrid in my WPF application. I was wondering if there is a way to show default values for a column in the datagrid. For example, I let the user have the ability to add new rows to the DataGrid. Hence, at the bottom of the DataGrid, there is always a blank, empty row for the user to add data to. I was hoping to have a default value for a column in this row. Is there any way to achieve this functionality? Thanks!

  • 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-28T03:46:02+00:00Added an answer on May 28, 2026 at 3:46 am

    Let’s say ItemsSource of your DataGrid is a Collection of SomeClass and you are displaying different Properties of SomeClass in DataGrid Columns. What you can do is in constructor of default SomeClass assign the Properties some default value. In this way you can have default column value in DataGrid.

    Edit

    As you said the itemssource of column is a string there is one way I can think of..

    Make it collection of SomeClass which will only have a string property. In the default constructor of SomeClass assign this string a default value. That default value will appear in your data grid column

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

Sidebar

Related Questions

I am making a WPF-application.I have a datagrid with a column header that contains
I have a problem with my WPF application. I have a datagrid (Wpf Toolkit),
I have a DataGrid in a WPF application which has for its ItemsSource a
I have a VS11 beta WPF application with a Microsoft Datagrid based on a
I have a DataGrid in WPF app with several columns, including a Name column.
I have a DataGrid control in a WPF application. I want to be able
I have a WPF application with a datagrid who's ItemsSource is a BindingList. When
I have a WPF/MVVM application with a DataGrid on a window. I want to
I have a WPf Toolkit-datagrid..in my application which follows MVVM pattern. How I can
I have a DataGrid in a WPF application that binds itself to an ObservableCollection

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.