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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:23:07+00:00 2026-05-20T05:23:07+00:00

I have been playing around with the WPF GridView control (DesktopUI not Silverlight) and

  • 0

I have been playing around with the WPF GridView control (DesktopUI not Silverlight) and I need to be able to select a specific row and only have the data for that row returned for viewing within a new control such as a list box.

In addition, once the data from a row has been selected the ability to select or add additional data to my listbox needs to be disabled. The use case here is that a user may only select one row/record to export or publish.

In looking through some of the telerik samples I have seen a few similar examples but nothing that fully supported this use case.

Has anyone had expereince with these controls and to know if this can this be accomplished within a WPF gridView. I haven’t had much luck with their documentation and I have tried to use some of the inherit features like the GridViewSelectColumn property (which generates a checkbox in a column but I haven’t had any luck invoking commands when a checkbox is selected/checked). Instead of the checkbox should I look to use a button and add that as a stand alone column that the user can click such as:

If anyone can provide a code sample of how to invoke the selection of one row of data as well as how to disable the seletion of additional rows once a single row has been selected I would appreciate it. For the disabling I assume that the CanUserSelect property needs to be set to false once an item has been selected but I have yet to successfully been able to invoke anything using the GridViewSelectColumn.

Any samples or points of reference would be appreciated.

Thank you

  • 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-20T05:23:08+00:00Added an answer on May 20, 2026 at 5:23 am

    I realize this is an old post . But I wanted to address this in the hopse it will help others. For this project I wanted to have the ability to select records for a spcecific row within a grid view. The Telerik GridView returned 5 columns but the collection (returned from a WCF service) actually contained up to 30 columns.

    I’m not going to address the binding of data here only how the selection was setup. Also this sampel does not follow a pattern (such as MVVM) so for quick explination the code was placed in the xaml code-behind.

    First, I needed to register CollectionChangedEvent Handlers. What this did was everytime I selected a row wihtin the Grid view it generated an in-memory collection of all the items based upon the selected row.

    this.myGridView.Loaded += (o, e) =>
          {
              this.myGridView.SelectedItems.CollectionChanged += new NotifyCollectionChangedEventHandler(SelectedItem_CollectionChanged);
          };
    

    And for the SelectedItem_Collection Changed Event

            void Item_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            if (e.Action == NotifyCollectionChangedAction.Add)
            {
                var index = e.NewItems[0] as myWCFService.Index;
                currentItem = index.Item;
            }
        }
    

    Basically what happens here is when a record selection is detected the items from the selected row(including all items not shown in grid) This is done by seting index = to the e.NewItems[0] from my webservice which is then added to new collection (currentItem) in-memory.

    Note: currentItem was declared in the main class as:

     public myWCFService.Item currentItem;
    

    Once this was done I had the ability to pass the data from the selected row (stored in the currentItem collection) to other collections/controls

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

Sidebar

Related Questions

I have been playing around with the postgresql.conf file for a couple days now.
I have been playing around with the EF to see what it can handle.
I have been working with PostgreSQL, playing around with Wikipedia's millions of hyperlinks and
I have been playing around in PHP with it and got something to work,
Have been playing around with linq but there is one thing I cant seem
I have been playing around with writing some simple card games in Python for
I have been playing around in expect recently and I for the life of
I have been playing with the Ruby library shoes. Basically you can write a
I have been playing with this for a while, but the closest I have
I have been playing with the Linq to Sql and I was wondering if

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.