We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SelectedItem binding bug

Thread ID:

Created:

Updated:

Platform:

Replies:

121806 Jan 27,2016 12:02 PM UTC Jan 28,2016 12:33 PM UTC WPF 1
loading
Tags: SfDataGrid
Catalin Pop
Asked On January 27, 2016 12:02 PM UTC

I'm experiencing a weird behaviour of the SfDataGrid control when using the SelectedItem property.
My XAML looks like this:

<Syncfusion:SfDataGrid ItemsSource="{Binding Clienti}"
                               SelectionUnit="Row"
                               SelectedItem="{Binding SelectedClient}"
                               AutoGenerateColumns="True">
</Syncfusion:SfDataGrid>

The property that I bind to gets updated the first time I select a row in the grid, but any subsequent selections are ignored.
If I place a brakpoint in the setter of the property I'm binding to, the "value" is always the first item that I select, regardless of the actual Item that I select in the grid.
This problem goes away when I use a simple DataGrid instead of Syncfusion:SfDataGrid.

Any ideas?

Ambarish Srinivasan [Syncfusion]
Replied On January 28, 2016 12:33 PM UTC

Hi Catalin,

We have checked in our side and SelectedItem binding works as expected. Find the sample which we have used for testing.
Sample

Please update us with modified sample to reproduce the problem.

Regards,
Ambarish.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;