Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

4. The Data Grid > Validating the DataGrid

Validating the DataGrid

Applies to Silverlight 4 and 5

Validation of your data is a requirement for almost every application in order to make sure that no invalid input is possible. If you're using a DataGrid, then you can easily implement validation by using data annotations on your classes or properties. This control picks up these validation rules automatically and even provides visual feedback. In this recipe, you'll learn how to get your DataGrid to implement this kind of validation.

Getting ready

You can find a starter solution for this recipe located in the Chapter04\DataGrid_Validation_Starter folder in the code bundle that is available on the Packt website. The complete solution for this recipe can be found in the Chapter04\DataGrid_Validation_Completed folder.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint