Silverlight 2 DataGrid December 2008 Release
|
Entry Date: Dec 2008
|
site: Microsoft
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
This version of the DataGrid contains the a lot of improvements over the version that was released in the Silverlight 2 SDK, and almost 30 bugs have been fixed.
|
Comments:
Good news !!! fixes for the buggy Silverlight DataGrid control, worth to update the DLL and start working with this control having confidence on it
Fixed the dropdown combo issue, but you will have to remove the workarounded custom combo (won't work now).
|
Click Here To Navigate to the Article
|
Defining Silverlight DataGrid Columns at Runtime
|
Entry Date: Oct 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
Now that you know the basics of the Silverlight Now that you know the basics of the Silverlight DataGrid and how to specify the Columns in XAML, you might want to customize your DataGrid's columns at runtime.
This process is pretty straight forward, so instead of doing the usual end-to-end walk through, I'm going to provide you with a Rosetta Stone between the static XAML form and the dynamic C#/VB form for the scenario in the last post.
|
Comments:
Normally when you use a Silverlight Datagridyou know which columns are you going to use so you can define it in your XAML, but... in some cases you need to add columns dynamically, in this post you will learn how to do this, quite interesting the following snippet:
Defining a DataGrid Template Column
There are two ways to dynamically create a template column for a DataGrid. One is to load in the CellTemplate and CellEditingTemplates as DataTemplates from resources, and the other is to construct the DataTemplates on the fly using XamlReader.
|
Click Here To Navigate to the Article
|
Silverlight 2 DataGrid is Released
|
Entry Date: Oct 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
As you might have heard, we just released Silverlight 2, and with it the first version of the Silverlight DataGrid! We have been building this for a while, giving the first glimpse of it last March in Silverlight 2 Beta 1, and tweaking it ever since based on your feedback. We were able to pack a lot of great features into it, and I look forward to hearing from you what features you want next!
|
Comments:
Interesting: summary of features available on the final Silverlight DataGrid Release.
Good to have it as a reference, before starting coding jsut check if that functionallity already exists :-).
|
Click Here To Navigate to the Article
|
Freezing Columns in the Silverlight DataGrid
|
Entry Date: Oct 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
Have you ever been working with a large enough number of columns that you get horizontal scrolling, but you want some of the columns to not scroll? Think of a column such as Employee Name that you want to remain visible while you scroll through ten weeks of sales data. You might want to see which employee had the best sales for week 4. Since the Employee column is on the far left, any amount of scrolling causes it to scroll out of view, that is unless you freeze it. This causes it to not scroll and always be visible putting your other data in context.
|
Comments:
Interesting built in functionallity in Silverlight DataGrid, freeze columns (similar to Excel's freeze pane functionallity).
You only need to add line of code where you indicate the number of columns to freeze.
|
Click Here To Navigate to the Article
|
Post Beta 2 Breaking Changes
|
Entry Date: Oct 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
As mentioned we made some changes, hopefully for the better, to the DataGrid API since Beta 2. Special thanks to our developer Yifung Lin for compiling this list:
|
Comments:
DataGrid changes from Beta 2 to RC / RTW has been traumatic, this post enumerates those changes plus workarounds have been enumerated in this post, the most important one:
The DataGrid.CancelingEdit and the DataGrid.CommittingEdit events can no longer be used. It is recommended that you use IEditableObject to track when a commit has occurred.
About DataGrid and inline editing, IEditableObject is not as well the perfect solution, you have other chances but they are not 100 % bullet proof: use LostFocus event, override IObservableCollection and add events that notifies any change on the collection (http://silverlight.net/forums/p/37051/108540.aspx).
|
Click Here To Navigate to the Article
|
Silverlight 2 RC0 DataGrid CommittingEdit work around
|
Entry Date: Oct 2008
|
site: onteorasoftware
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
In Silverlight 2 Beta 2 DataGrid had a CommittingEdit event which was a great event to update the data in an ado.net dataservice. Unfortunately this event was removed in the RC0 of the datagrid. As a work around Jonathan Shen suggested using a template column and using the LostFocus event to update your dataservice data.
|
Comments:
Silverlight Beta 2 DataGrid Shipped a very useful event called CommittingEdit (before an edit in a row was going to be commited you could just perform checks and roll back changes).
In Silverlight RC0 they have removed this event because was not stable, probably it won't be available as well on the RTW/RTM version.
Right now there is no official way published to perform online editing on a Silverlight DataGrid, in the mean time, some developers have found a workaround: subscribe to LostFocus on every edit control, it doesn't work fine for all the cases (clicking outside the navigator, or in the navigator bars, ...), but at least you will have something working, meanwhile Ms post the definitive solution (no news from Scott Morrison Blog so far...).
|
Click Here To Navigate to the Article
|
Silverlight 2 - Simple Editing of Web Service Data in a DataGrid
|
Entry Date: Jul 2008
|
site: Silverlight Show
|
Rating:
|
keywords:WCF; Silverlight; Web Services; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
Somebody asked how you use the DataGrid in Silverlight 2 in order to load data from a web service, modify it and submit it back so I thought I'd spend 5 minutes experimenting with that.
I wrote a very simple web service with WCF;
|
Comments:
How to hook a Silverlight DataGrid to data via WCF web services
Here you will find interesting information, things like: how to remove or insert a row, how to send the changes to the backend via web services, ...
|
Click Here To Navigate to the Article
|
Insert, Update and Delete in Silverlight DataGrid using ADO.NET
|
Entry Date: Jul 2008
|
site: C Sharp corner
|
Rating:
|
keywords:ADO .net; Silverlight; Web Services; VS 2008; .net framework 3.5; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
This article is in continuation of the previous one in which I discussed how to create ADO.NET Data Service and access Database using Silverlight 2. Here i am going to show how to perform Insert, Update and Delete in Selverlight Datagrid using ADO.NET Data Service.
|
Comments:
Quite interesting, how to perform CRUD operations on a Silverlight DataGrid using ADO .net services (data web services and ADO .net entity framework).
The article is quite summarized, you will need to download the sample code.
|
Click Here To Navigate to the Article
|
Defining Columns for a Silverlight DataGrid
|
Entry Date: Jun 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
If you read my last post, you might have noticed how easy it is to get a Silverlight DataGrid up and running with the AutoGenerateColumns feature. Something else you might have noticed is that if you don't like the default column choices it is sort of hard to change them. Not to fear however since there are two ways to get more control. One way is to use the AutoGeneratingColumn event (we'll talk about this 5 topics or so down the line) but the easiest way, and the topic of our discussion today, is by using the Columns collection.
|
Comments:
Pretty good tutorial about how to bind collections to a Silverlight DataGrid. You will find how to perform two way bindings (if an items changes in the DataGrid propagate that change into collection associated and the other way around), how to create different templates for just displaying or editing rows, even... cool formatters !!
|
Click Here To Navigate to the Article
|
Auto-sizing the Silverlight DataGrid
|
Entry Date: Jun 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Performance; Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
Unlike in Beta 1, the height and width of the DataGrid is now auto-sized by default. This means that if you put it in a Canvas or a StackPanel and don't specify a size, you will no longer see just the ColumnHeaders, but rather will get a DataGrid that is sized to its contents.
|
Comments:
Interesting, DataGrid columns support now Autosizing, you can go column by column and say: for this one I want a fixed size, for this one adjust to header or cell size...
If you have to show a lot of records this functionallity can lead you to performance issues and maybe you will have to disable it
|
Click Here To Navigate to the Article
|
Sorting Data in the Silverlight DataGrid
|
Entry Date: Jun 2008
|
site: Blogs MSDN
|
Rating:
|
keywords:Silverlight; VS 2008; Visual Studio 2008; XAML; DataGrid;
|
Article Description:
One of the most requested features in Beta 1 was a way to sort the data contained in the DataGrid. In fact it was so desired that clever developers such as Matt Berseth simply created their own implementation. Fortunately, in Beta 2 you don't have to put much work into getting this functionality out of the box.
|
Comments:
Very basic tutorial about how to use automatic sorting (needs a datasource that implements IList).
Good for some basic sorting, but... still pending a post about custom sorting and paging.
|
Click Here To Navigate to the Article
|