IntroductionIn this article I will explain how to display RowCount on Column Header in DataGrid in SilverLight. It’s a cool idea to get no of rows in DataGrid in SilverLight. ImplementationAs usual create silverlight project and design page as like below, and then create a sample class, then create sampledata class from sample with list. Then modify the XAML for the page as like below, and then bind Sample object to gridview with ItemSource and then set column is ReOrder and Resize. finally modify Header using Template to display row count Finally run application and see output as like below, That's all.i have attached sample project.you can download and try it. Download Sample ProjectDownload source files -2008 kb |