Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

help wnt to delete Record in Grid View using Check box... RSS

1 reply

Last post Sep 08, 2009 11:31 AM by varshavmane

(0)
  • viral0028

    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

    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 [:)]

    Please "Mark as Answer" if this post answered your question. :)
    Visit my Blog