Why no ValidatedDataGridTextColumn in CSLA-for-Windows

Why no ValidatedDataGridTextColumn in CSLA-for-Windows

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


TheEld posted on Wednesday, July 01, 2009

I know that Rocky introduces CSLA helper controls like ObjectStatus and PropertyStatus due to WPF shortcommings.  So when I see the helper control ValidatedDataGridTextColumn in SliverLight but not WPF it leads me to believe that WPF already has equivelent functionality built into its DataGrid somewhere.

Is this true?  Does WPF/Microsoft.Windows.Controls.DataGrid have built in column-level validation  that I can easily bind to a CSLA collection?  If so, could someone please point me at it.  I've looked high and low and can't find it.  I can bind by CSLA lists just fine to the DataGrid, just can't find how to do the validation.

I am using PropertyStatus outisde of the DataGrid just fine on TextBoxes, but need help using it in DataGrid's.

 

 

sergeyb replied on Wednesday, July 01, 2009

Yes, it does have similar functionality, although not quite like PropertyStatus.  http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx#errorinfo

 

 

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: TheEld [mailto:cslanet@lhotka.net]
Sent: Wednesday, July 01, 2009 2:42 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Why no ValidatedDataGridTextColumn in CSLA-for-Windows

 

I know that Rocky introduces CSLA helper controls like ObjectStatus and PropertyStatus due to WPF shortcommings.  So when I see the helper control ValidatedDataGridTextColumn in SliverLight but not WPF it leads me to believe that WPF already has equivelent functionality built into its DataGrid somewhere.

Is this true?  Does WPF/Microsoft.Windows.Controls.DataGrid have built in column-level validation  that I can easily bind to a CSLA collection?  If so, could someone please point me at it.  I've looked high and low and can't find it.  I can bind by CSLA lists just fine to the DataGrid, just can't find how to do the validation.

I am using PropertyStatus outisde of the DataGrid just fine on TextBoxes, but need help using it in DataGrid's.

 

 



TheEld replied on Thursday, July 02, 2009

OK, thanks for the point in non-CSLA direction. 

But anybody know why this control isn't available in CSLA-for-Windows, if for no other reason then consistency between CSLA products (Windows vs Silverlight)?

  

RockfordLhotka replied on Thursday, July 02, 2009

There are a couple reasons.

One is that I had an actual development team from Magenic to help me build CSLA .NET for Silverlight. In all other regards I was (and am) the sole developer. And I do this for free, so I only have so much time to build all the cool stuff everyone wants :)

But the bigger reason is that the Silverlight datagrid control is part of the platform, while the WPF datagrid (when we were working on all this) was a prototype control in the WpfToolkit project. I can't afford to support every external library created for the platform, so I don't try.

I believe the WPF datagrid will become part of the actual product in .NET 4.0, and (time permitting) I will probably create some custom column types in CSLA .NET 4.0.

Copyright (c) Marimer LLC