Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143510 | Mar 24,2019 11:26 AM UTC | Mar 27,2019 06:02 AM UTC | WPF | 5 |
![]() |
Tags: SfDataGrid |
Query |
Answer | |
Setting SelectedIndex selects the wrong item |
In your code, you have set the wrong index for SelectedIndex. Since “sfGrid.View.Records.IndexOf(record)” returns the position of record in the recordlist and it does not include Groups in the view. So you need to set the actual position of the record in the view by using helper methods as like below code snippet
| |
Setting SelectedItem throws exception |
From the provided code snippet, we suspect that you have set the recordEntry directly to the SelectedItem which will throw exception. You can resolve the reported exception by setting row data as the SelectedItem as like below code snippet
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.