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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:41:33+00:00 2026-06-03T19:41:33+00:00

I have datatable as Item source for DataGrid, this datatable has lots of columns.

  • 0

I have datatable as Item source for DataGrid, this datatable has lots of columns. Is it possible to display few columns instead all of them without creating a new table?

  • 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-03T19:41:34+00:00Added an answer on June 3, 2026 at 7:41 pm

    Yes, it is. Just mark AutoGenerateColumns=False and manually define your columns. You can use normal text-bound columns, checkbox columns, custom XAML template columns and more, as you can see in the documentation.

    <DataGrid ItemsSource="{Binding DataSource}" AutoGenerateColumns="False" >
        <DataGrid.Columns>
        <DataGridTextColumn Header="Simple Value"
                          Binding="{Binding SimpleValue}" Width="*" />
         <DataGridTemplateColumn Width="*" Header="Complex Value">
            <DataGridTemplateColumn.CellTemplate>
              <DataTemplate>
                <StackPanel>
                   <TextBox Text="{Binding ComplexValue}"/>
                   <TextBox Text="{Binding ComplexValue2}"/>
                </StackPanel>
              </DataTemplate>
            </DataGridTemplateColumn.CellTemplate>
          </DataGridTemplateColumn>
        </DataGrid.Columns>
      </DataGrid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DBF file read into a datatable and display with a datagrid
I have a form with a dataTable which has various columns having links and
I have a WPF DataGrid which has a DataTable as its ItemsSource . The
I have a DataTable that has a boolean column called [Invalid]. I need to
I have a DataTable with 3 columns (a,b,c) and a docx file with the
I have dwo DataTable's and one DataGrid, and I want to merge trzis DataTable
I have Window that has a ListBox ListBox(MyListBox) has a DataTable for its DataContext
I'm not sure if this is possible or not. I have created a ComboBox
I have this DataTable with the following structure: ID | VALUE ---------------- 1 |
I have a datatable with a button in each row: <ice:dataTable ... var=item> <ice:column>

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.