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

  • Home
  • SEARCH
  • 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 105521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:27:08+00:00 2026-05-11T01:27:08+00:00

I am displaying many rows of data in a list view that is bound

  • 0

I am displaying many rows of data in a list view that is bound to a list of a custom class. The custom class has a property called type. The number of allowable Types is limited and I would like to limit the user to making changes by selecting from a combobox. I tried adding a combobox to the base class but that did not display as a combobox in the list view.

  • 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. 2026-05-11T01:27:09+00:00Added an answer on May 11, 2026 at 1:27 am

    Found this online and seemed like a good starting point to begin working with DataTemplates.

    http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/749c8e84-3af3-4ec9-90b1-297d684025e7/

    <Window x:Class='Window1' xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' Title='Window1' Height='300' Width='300'>  <Window.Resources>      <XmlDataProvider x:Key='MyData' XPath='/Info'>         <x:XData>             <Info xmlns=''>                 <Item ID='123' Catalog='Category1'/>                 <Item ID='456' Catalog='Category2'/>                 <Item ID='789' Catalog='Category3'/>             </Info>         </x:XData>     </XmlDataProvider>      <CollectionViewSource x:Key='src' Source='{Binding Source={StaticResource MyData}, XPath=Item}' />  </Window.Resources>  <Grid>      <ListView Name='mylist' ItemsSource='{Binding Source={StaticResource src}}'>          <ListView.View>              <GridView>                  <GridViewColumn Header='Catalog' Width='100'>                      <GridViewColumn.CellTemplate>                         <DataTemplate>                             <ComboBox Name='mycombo' SelectedValue='{Binding XPath=@Catalog}'>                                 <ComboBoxItem>Category1</ComboBoxItem>                                 <ComboBoxItem>Category2</ComboBoxItem>                                 <ComboBoxItem>Category3</ComboBoxItem>                             </ComboBox>                         </DataTemplate>                      </GridViewColumn.CellTemplate>                  </GridViewColumn>                  <GridViewColumn Header='ID' Width='100' DisplayMemberBinding='{Binding XPath=@ID}' />              </GridView>          </ListView.View>      </ListView>  </Grid> 

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

Sidebar

Related Questions

In for loop it displaying only last data. In database how many rows are
I have a matrix on my report that is displaying a data set that
i am using MKMapView Annotation for Displaying pin's.In my Project there are many number
I have an User object that has many attributes. In my edit profile screen
How would you make Rows that are the Top Parent in an Outline View
I have a line chart that sometimes contains a number of data points. I
Displaying Type here to ... until the user enters text into a TextBox is
I'm displaying a model in a QTreeView. The data displayed consists of text. The
I'm trying to implement scrolling functionality in a textBox, so that I'm only displaying
my problem:--- This is my wifi_log.php file <?php // find out how many rows

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.