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 Jason We have problem on DataGrid refresh when delete all the records except first 2. In the reproducing project attached: 1) Unzip, build and run the application 2) Click on MoreProblem button 3) select the records from 3rd to the last one by click on the row header of 3rd record and drag the mouse to the bottom of the datagrid to select all records (except first 2 rows) 4) click delete button 5) the records left on the datagrid suppose to be "a a1 10" and "b b1 10", but it is not. See the attached image "DeleteRefreshProblem.JPG' 6) if you resize the window, then the records is ok. See image "NormalAfterResizeWindow.JPG" It has problem since Mindscape.WpfElements.dll production version 7.0.504.23417 as far as I can track. Please fix this problem as we are close to release our products. Thanks, Gordon |
|
|
Hi Gordon, I've tried to fix this issue, but sometimes it still seems to happen. What I did will be available in the next nightly build in case it works better for you. Sorry I couldn't fully fix this issue. -Jason Fauchelle |
|
|
Hi Jason, I downloaded Mar 13, 2016's nightly build, not much improvement at all, I can reproduce it every time. Is this similar with the thread: http://www.mindscapehq.com/forums/thread/299281 ? I remember that we have same issue a long time ago, and you fixed it. Please fix it, since I cannot do anything on our end to make it go away. And we use the datagrid in our application heavily - every page have a datagrid on it. Thanks, Gordon |
|
|
Hi Gordon, Thanks for trying out my previous attempt at fixing this. I've come up with a better solution which at my end seems to have completely solved the issue. The nightly builds have been turned off for now as we sort something out. I'm not sure when this will be enabled again, so if you need this fix sooner, and you have the source code, you will be able to make the couple of quick changes at your end to fix this. On line 688 of DataGridPanel.cs, add:
On line 338, also of DataGridPanel.cs, get rid of the else statement. (Just the else, not the content in the brackets) If you do this, let me know if you have further questions. -Jason Fauchelle |
|
|
Thanks Jason, I tried your solution and it worked. The problem is that I cannot build WpfControls.Design.Dll, it complains cannot find the reference: Microsoft.Windows.Design I am using Visual Studio 2012 (tried 2013, same problem) and .Net version 4.0 (I also tried to change it to 3.5 and it does not work either) Is WpfElement using .Net4.0 or .Net3.5 when you build it? I remembered you mention, it is referencing .Net3.5. When the nightly build resumes, please let us know. Gordon |
|
|
Hi Gordon, Will do. Great to hear that the solution fixes the problem. The version of WpfElements you have uses .NET 4.0. I don't know much about the design projects, maybe you will be able to use the one from the standard WPF Elements install. Or, you may be able to add the Microsoft.Windows.Design.dll to the design project. In the add references dialog, use the search box on the right hand side to find it. Hope that helps. -Jason Fauchelle |
|
|
Hi Gordon, The nightly build for WPF Elements is available again. -Jason Fauchelle |
|
|
Thanks, Jason. We downloaded Mar 24's nightly build and the fixes solved the problem. (we were checking the website everyday last week) Gordon |
|