Data Validation in Silverlight DataGrid

One of the features added to datagrid in Silverlight 3 Beta is Validation.  This can be done –          Once we modify the content of a particular cell (cell validation) –          Once we modify the content of a particular datagrid row (would like to commit changes to row) (Row Validation) In this blog, I will try…

11

SortDescriptions in Silverlight Datagrid

In Silverlight 3, we can specify add sortdescriptions indatagrid so that these columns are sorted initially when the datagrid loads. This can done in XAML as well as in code. The following code snippets demonstrate this behavior. Specifying SortDescriptions in XAML <UserControl x:Class=”SortDescriptions3.MainPage”     xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”     xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”     xmlns:data=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data”     xmlns:scm=”clr-namespace:System.ComponentModel;assembly=System.Windows”     >     <Grid x:Name=”LayoutRoot” Background=”White”>…

9

Grouping in Silverlight DataGrid

Silverlight 3 Beta has got a very  good response at Mix 09 conference.  There have been some additions to datagrid since Silverlight 2 RTW.  One of them  is support for Grouping – developers can specify columns by which they want to group by.  The Group definitions can be added through XAML as well as through Code.  Adding Group…

14