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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:58:19+00:00 2026-06-05T19:58:19+00:00

I set the datasource for a WPF dxg:GridControl to that of a hard coded

  • 0

I set the datasource for a WPF dxg:GridControl to that of a hard coded list.

        gridControl1.ItemsSource = new List<Entity> { new Entity() { Name = "1" }, new Entity() { Name = "2" }, new Entity() { Name = "3" } };

I have to specify each column in the XAML:

        <dxg:GridControl.Columns>
            <dxg:GridColumn FieldName="Name" Name="gridColumn1" />
            <dxg:GridColumn FieldName="Column2" Name="gridColumn2" />
        </dxg:GridControl.Columns>

How can I get the columns to autogenerate instead of specifying XAML?

I tried removing the columns. That displayed nothing. The data actually comes from a WCF service at runtime, so the “Populate Columns” button in design mode is probably not going to work either.

  • 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-05T19:58:22+00:00Added an answer on June 5, 2026 at 7:58 pm

    A bit of a stab in the dark, but other grids in WPF usually have something like this…

    <dxg:GridControl AutoPopulateColumns ="True">
    

    (edit to get actual property name)

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

Sidebar

Related Questions

I have a DataGridView with the DataSource set to List<myClass> However, the new row
I have a Devexpress.XtraGrid.GridControl that I have set the DataSource to a DataTable .
I have a datasource set in my Jetty.xml file that looks like this: <New
I'm very new to WPF, and am trying to set the datasource (which the
I have List<List<double>> with values and wpf datagrid. How can I set this as
I have a DataGridView with its datasource set to a generic list of custom
If I have a control on a page that has its Datasource set to
I have a DGV that has its datasource set to a BindingList. There is
I have a List of an object, set to DataSource of a BindingSource, set
I have a WPF DataGrid who's data source is an ObservableCollection. It is set

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.