Sign In|Join
Home/Silverlight.NET Forums/General Silverlight/Getting Started/help wnt to delete Record in Grid View using Check box as item template
Last post Sep 08, 2009 11:31 AM by varshavmane
Member
672 Points
412 Posts
Sep 08, 2009 11:13 AM | LINK
hi....
I wnt to delete Record in Grid View using Check box as item template , i m using LinQ as Query to Delete...
thX...
Star
13219 Points
2753 Posts
Sep 08, 2009 11:31 AM | LINK
Hi,
First create ObservableCollection and bind it with the DataGrid (Datagrid1.itemsSource = yourObservableCollecton)
On checkbox checked event, delete record from the your Observable Collection.
Finally make Datagrid1.itemsSource = null and then rebind it with your yourObservableCollecton
Also check this video: http://silverlight.net/learn/learnvideo.aspx?video=66677
HTH [:)]
viral0028
Member
672 Points
412 Posts
help wnt to delete Record in Grid View using Check box as item template
Sep 08, 2009 11:13 AM | LINK
hi....
I wnt to delete Record in Grid View using Check box as item template , i m using LinQ as Query to Delete...
thX...
varshavmane
Star
13219 Points
2753 Posts
Re: help wnt to delete Record in Grid View using Check box as item template
Sep 08, 2009 11:31 AM | LINK
Hi,
First create ObservableCollection and bind it with the DataGrid (Datagrid1.itemsSource = yourObservableCollecton)
On checkbox checked event, delete record from the your Observable Collection.
Finally make Datagrid1.itemsSource = null and then rebind it with your yourObservableCollecton
Also check this video: http://silverlight.net/learn/learnvideo.aspx?video=66677
HTH [:)]
Visit my Blog