Bindable DataGrid with DataSources

Open Souce Silverlight Bindable DataGrid with DataSources

Open Souce Silverlight Bindable DataGrid with DataSources

BindableDataGrid for Silverlight is an open source Bindable DataGrid with DataSources (like DataSet and DataTable). Using these new classes (DataSet and DataTable) columns can be defined using the DataColumns prior to binding, so when the data is actually loaded their properties (read only, resizable, sortable, ...) are set automatically too.

Bookmark:

Bindable DataGrid with DataSources

New control extending the Silverlight DataGrid to enable an easier use of biding objects with DataSource instead of ItemsSource. New classes (DataSet and DataTable) have been created to show how it works.

This is a new Silverlight 3 DataGrid control that allows the user to bind data in a traditional .Net way.

Currently there's no support for DataSet and DataTable in Silverlight, so these two classes have been built in the same component as well, trying to replicate the minimal set of functionality to make everything work. Please note these are not the normal .Net DataSet and DataTable.

Actually binding data to a Silverlight DataGrid is easy with the ItemsSource property as long as it's IEnumerable, but the problem is that it has to define the "rows" previously, that is, the "cells" (properties of each object) have to be known at design time.

With this control and the new classes everything is generated dynamically at runtime (using Reflection to create the objects needed to populate the "rows"). Also, the columns can be defined using the DataColumns prior to binding, so when the data is actually loaded their properties (read only, resizable, sortable, ...) are set automatically too.

Use this Silverlight File Uploader in silverlight projects or directly on ASP.Net pages with the included server control.

Visit Website - slbindabledatagrid.codeplex.com

Open Souce Silverlight Bindable DataGrid with DataSources Information:

  • Applies To: Silverlight Bindable DataGrid with DataSources, Silverlight DataSet and DataTable
  • Programming Language: C#
  • Operating System: Cross-platform
  • License: GNU General Public License version 2 (GPLv2)

Leave a comment