CslaLight - DataGrid is not refresh correctly

CslaLight - DataGrid is not refresh correctly

Old forum URL: forums.lhotka.net/forums/t/6714.aspx


Fel posted on Wednesday, April 01, 2009

I'm working with CSLA Light, when I remove child object, delete line from grid, column which fire code that delete data is completely clean. Another 2 columns in selected row are 50% clean, and last column Hyperlinkbutton is still there. When I save and reopen page, this line is gone.
I know about DataGrid problem that was "fixed" in December version of Silverlight toolkit. I tried work around for this problem, setting focus on the grid. It doesn't work.
Also, I rebind dataprovider to refresh data/grids on page. Unsuccessful.

Any suggestion what can cause this behavior?
Am I only one who experience this problem?

In my project, I reference the latest version of System.Windows.Controls.Data, 2.0.5.0.

sergeyb replied on Wednesday, April 01, 2009

I would double check to ensure that you have the latest copy of the grid in your project.  The actual install actually has instruction with it because it does not update all places on your system.  I am just guessing that this is what the problem is, because I am unable to reproduce it with the latest version of the grid.

The only workaround is to unbind and rebind the grid, but this should not be necessary on the latest version (to the best of my knowledge).  If you find the actual DLL (System.Windows.Controls.Data.dll) you are referencing, the version on DLL should be 2.0.31202.0 and date around 12/16/2008.

 

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: Fel [mailto:cslanet@lhotka.net]
Sent: Wednesday, April 01, 2009 8:13 AM
To: Sergey Barskiy
Subject: [CSLA .NET] CslaLight - DataGrid is not refresh correctly

 

I'm working with CSLA Light, when I remove child object, delete line from grid, column which fire code that delete data is completely clean. Another 2 columns in selected row are 50% clean, and last column Hyperlinkbutton is still there. When I save and reopen page, this line is gone.
I know about DataGrid problem that was "fixed" in December version on Silverlight toolkit. I tried work around for this problem, setting focus on the grid. It doesn't work.
Also, I rebind dataprovider to refresh data/grids on page. Unsuccessful.

Any suggestion what can cause this behavior?
Am I only one who experience this problem?

In my project, I'm reference the latest version of System.Windows.Controls.Data, 2.0.5.0.


Fel replied on Friday, April 03, 2009

Thanks Sergey for your response.

I installed DataGrid dll from 12/2008 one more time on my system. Then, I added reference to it. Great. I got grid refreshing working correctly.
Unfortunately, during this process something happen to csla client in my project. I got errors saying that "csla:ValidateDataGridTextColumn" column in XAML has invalid property.
I deleted reference to csml and added it again. No success.
Interesting, csla works correctly. Only csla data grid columns are not available.
 
Any suggestion?

sergeyb replied on Friday, April 03, 2009

I am thinking your CSLA is out of date.  I would download the latest and update references to CSLA to reference the latest code.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: Fel [mailto:cslanet@lhotka.net]
Sent: Friday, April 03, 2009 10:48 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: CslaLight - DataGrid is not refresh correctly

 

Thanks Sergey for your response.

I installed DataGrid dll from 12/2008 one more time on my system. Then, I added reference to it. Great. I got grid refreshing working correctly.
Unfortunately, during this process something happen to csla client in my project. I got errors saying that "csla:ValidateDataGridTextColumn" column in XAML has invalid property.
I deleted reference to csml and added it again. No success.
Interesting, csla works correctly. Only csla data grid columns are not available.
 
Any suggestion?

Adam replied on Thursday, June 18, 2009

Hi

I appear to be having trouble with the datagrid in silverlight when I do an accept/discard it saves the information but then the datagrid blanks out the changed lines. The changed lines won't become visible again until I come completly away from the datagrid and rebind.

Any ideas?

I am currently using Silverlight 2 with CSLA.Net for Silverlight 3.6.2.0

Thanks

Adam

JoeFallon1 replied on Thursday, June 18, 2009

I thought that error was due to a bug in the Silverlight grid. Which was fixed last December. Did you obtain that fix?

Joe

Adam replied on Thursday, June 18, 2009

I found the fix http://www.microsoft.com/downloads/details.aspx?FamilyID=084a1bb2-0078-4009-94ee-e659c6409db0&displaylang=en#Requirements and have tried to apply it only to now have the error;

Error    1    The type 'System.Windows.Controls.DataGridBoundColumn' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.  

Help! Any ideas?

Adam replied on Thursday, June 18, 2009

Found the problem to be a reference to the old DataGrid dll in the csla framework so updated and re-built and away I go!

Copyright (c) Marimer LLC