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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:27:35+00:00 2026-06-10T11:27:35+00:00

<DataGrid AutoGenerateColumns=False Height=200 Margin=0,63,0,0 Name=dataGrid1 MouseDoubleClick=dataGrid1_MouseDoubleClick> <DataGrid.Columns> <DataGridTextColumn Header=Hospital Name Width=100 Binding={Binding hosp_name}/> <DataGridTextColumn

  • 0
<DataGrid AutoGenerateColumns="False" Height="200" Margin="0,63,0,0" Name="dataGrid1" MouseDoubleClick="dataGrid1_MouseDoubleClick">
    <DataGrid.Columns>
        <DataGridTextColumn Header="Hospital Name" Width="100" Binding="{Binding hosp_name}"/>
         <DataGridTextColumn Header="Order Number" Width="100" Binding="{Binding ordID}"/>
         <DataGridTextColumn Header="Order Date" Width="*" Binding="{Binding placedDate}"  />
    </DataGrid.Columns>    
</DataGrid>

Hey guys, I’m new with wpf, how can I make this into a template so I can render it each time I create a new tab programatically?

  • 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-10T11:27:36+00:00Added an answer on June 10, 2026 at 11:27 am

    Wrap it in a DataTemplate and assign it as ContentTemplate of the TabControl.

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

Sidebar

Related Questions

I have DataGrid with dataBinding: <sdk:DataGrid x:Name=colorGrid Height=160 Margin=0,5,0,10 RowHeight=40 AutoGenerateColumns=False > <sdk:DataGrid.Columns> <sdk:DataGridTextColumn
My DataGrid: <DataGrid ItemsSource={Binding Path=Question.Variations} AutoGenerateColumns=False Height=97 HorizontalAlignment=Left Margin=7,6,0,0 Name=dataGrid1 VerticalAlignment=Top Width=322> <DataGrid.Columns> <DataGridTextColumn
I use the following DataGrid <DataGrid Grid.Row=1 Grid.Column=1 Name=Grid ItemsSource={Binding} AutoGenerateColumns=False > <DataGrid.Columns> <DataGridTextColumn
In a DataGrid like this : <DataGrid AutoGenerateColumns=False Height=200 Name=dataGrid IsReadOnly=True ItemsSource={Binding CollectionView} >
I use a WPF Toolkit Datagrid with a LINQ to SQL <my:DataGrid AutoGenerateColumns=False Name=dataGrid2>
I have a DataGrid bound to a DomainDataSource: <sdk:DataGrid AutoGenerateColumns=False Height=Auto ItemsSource={Binding ElementName=mailboxDomainDataSource, Path=Data,Mode=TwoWay}
I have the following code: <DataTemplate> <!--<sdk:DataGridTextColumn Binding={Binding Description} Header=Description Width=205 />--> <TextBlock Text={Binding
I have a datagrid defined in XAML as follows: <toolkit:DataGrid Margin=10,116,62,34 Name=WADataGrid RowBackground=LightYellow AlternatingRowBackground=White
Have datgrid with dynamic columns number, like that: <DataGrid DataGridCell.Selected=DataGrid_GotFocus EnableColumnVirtualization=true EnableRowVirtualization=true Name=dataGrid1 DockPanel.Dock=Top
I've got a strange problem with WPFToolkit DataGrid - after disabling AutoGenerateColumns , after

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.