Skip to main content
Home Learn Videos Silverlight Videos Insert, Update, Delete with the DataGrid
Presented by:Microsoft
July 24, 2008 | Duration: 10:01
Login to Rate
:( Error
0 0
Select Your Format
The DataGrid provides an editable, spreadsheet-like surface for your data - here we take a look at how we can do insert, update and delete with the grid.
Member
9 Points
#1 August 22, 2008 4:22 AM
good video, thanks
225 Points
#2 October 10, 2008 3:34 AM
Why don't have the source code?
5 Points
#3 November 11, 2008 8:58 AM
Thanks Mike its wonderful video very helpful. I was struggling for inserting a new row in grid. BlankRowCollection is really good approach. For other's reference I’m putting that code. Watch video to see how to implement this..
public class BlankRowCollection<T> : ObservableCollection<T>
where T : INotifyPropertyChanged, new()
{
private T t;
public BlankRowCollection()
t = new T();
base.InsertItem(0, t);
t.PropertyChanged += OnPropertyChanged;
}
protected override void InsertItem(int index, T item)
if (index == this.Items.Count)
index = this.Items.Count-1;
base.InsertItem(index, item);
void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
t.PropertyChanged -= OnPropertyChanged;
base.InsertItem(this.Items.Count, t);
3 Points
#4 November 29, 2008 1:34 PM
Hi,
the video is not workink.
www.silverlight-travel.com/blog
42 Points
#5 January 27, 2009 2:28 PM
Nice Video
http://technicalpage.com
technicalpage <dot> com
7 Points
#6 March 02, 2009 3:15 PM
Nice Video, but it were helpfully to have the source code. ;-)
2 Points
#7 September 08, 2009 12:11 PM
Hello. I'm testing this example using sliverlight 3. I saw that when I implement new row using BlankRowCollection, i saw that integer or numeric value column are default to 0 in new row. i'm pretty new to this stuff. Could anyone kindly answer how to make a blank row.
#8 October 01, 2009 10:38 AM
Nice tutorial
this is interesting for one of my projects. I have tried to make an implementation this, but the event (OnPropertyChanged) wont fire.
Sorry for the brief description, but do you have any ideas on what I've done wrong?
#9 October 01, 2009 11:36 AM
As a followup to my last post..
I just had to implement the FirePropertyChanged to make it work.
Thanks again for the tutorial
You must be logged in to leave a comment. Click here to log in.