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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:32:49+00:00 2026-06-03T22:32:49+00:00

We are using MVVM Light Silverlight project for WCF Ria Service based project. After

  • 0

We are using MVVM Light Silverlight project for WCF Ria Service based project. After some research we decided to use DevExpress DataGrid with RiaInstantFeedbackDataSource. Everything works great until we wanted to bind grid’s focused row to a ModelView property. Here is our XAML,

<UserControl x:Class="OurProject.Silverlight.Views.Personnel.List"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
         xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" mc:Ignorable="d"
         DataContext="{Binding Personnel, Source={StaticResource Locator}}" 
         d:DesignWidth="640" d:DesignHeight="480">
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition Height="30" />
    </Grid.RowDefinitions>

    <dx:RiaInstantFeedbackDataSource x:Name="DataSource" QueryName="{Binding Path=QueryName}" KeyExpression="{Binding Path=KeyExpression}"
                                     DomainContext="{Binding Path=Context}" />

    <dxg:GridControl Name="grid" ItemsSource="{Binding ElementName=DataSource, Path=Data}" Grid.Row="0" AutoPopulateColumns="True" >
        <dxg:GridControl.View>
            <dxg:TableView x:Name="view" FocusedRow="{Binding Selected}" />
        </dxg:GridControl.View>
    </dxg:GridControl>
    <Button Grid.Row="1" Height="30" VerticalAlignment="Bottom" Content="Edit" Command="{Binding Edit}" />
</Grid>

When we debug this code (breakpoint after Edit command executed) we realized that type of FocusedRow is object[]. We tried RowPropertyValueConverter but we can’t find any document on how to use it.
How can we bind selected row (or any property [for example Id column] from that row) to a property from ViewModel?

P.S: We checked this link, it does not work for RiaInstantDataSource.

Thanks in advance.

  • 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-03T22:32:51+00:00Added an answer on June 3, 2026 at 10:32 pm

    OK, we solved this issue with

    AreSourceRowsThreadSafe=”True”

    addition to our code.

    <dx:RiaInstantFeedbackDataSource x:Name="DataSource" QueryName="{Binding Path=QueryName}" KeyExpression="{Binding Path=KeyExpression}" AreSourceRowsThreadSafe="True" DomainContext="{Binding Path=Context}" />
    

    We will trace the impacts of this with multi-threading and will write here back any important foundings.

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

Sidebar

Related Questions

I am using RIA services to serve entities to a MVVM-Light enabled Silverlight application.
First time poster. I'm using MVVM-Light with Silverlight 4 and RIA Services. This has
I'm using mvvm light to build a Silverlight application. Is there a code snippet
I am creating a Silverlight 4 application with Entity Framework, RIA Services and MVVM-Light
I am using silverlight mvvm light framework. when I was trying to delete entity
Hi I have a silverlight MVVM application using MVVM light. When I open the
I am using SL4, MVVM Toolkit, Entity Framework 4 & WCF RIA Services. I
Hey guys, I'm building a project using Silverlight and the MVVM pattern, what I
I'm using the MVVM Light Toolkit with Silverlight. On my UserControl I have a
I am reading Shawn Wildermuth's article on architecting Silverlight applications using MVVM light :-

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.