This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, In the DataGrid.SelectedItems will have an repeated item if you doing the following Steps: 1)If you have a few records in the DataGrid 2) Click on one row header to select the row 3) Press down the shift key and click on another row header so that you can select multiple rows 4) Press down the control key and click on another row header (a few records down from last selection) so you will have another record selected 5) Press down Ctrl key and Shift key at the same time, click on a row header which is not selected before, so now you will have 2 blocks of records selected, Let's say on DataGrid, 8 rows are highlighted, it means it will have 8 rows selected, but if you exam the DataGrid.SelectedItems, it actually has 9 items, and the first row in the 2nd block of selected rows are repeated. You can use the the project I send to you in the thread http://www.mindscapehq.com/forums/thread/331279 and put a break point in the function (CmostPlusDataGrid.cs Line 175) CmostPlusDataGrid.notifier_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) to reproduce the bug. If I want to export the selected lines, then I will have an repeated records. Can you guys fix this? Thanks Gordon |
|
|
Hello Gordon Thanks for pointing out this bug! This will be resolved in the next nightly build. Jason Fauchelle |
|
|
It is fixed. Thanks |
|