How to clear the listbox after deletion of item using sqlite in windows Phone 7?

The Items collection on a ListBox is readonly. Try using the ItemsSource property.

Up vote 0 down vote favorite share g+ share fb share tw.

I am trying to clear and reload the listbox after deletion of item . But I am getting error. Please tell me how to clear and reload the listbox after sqlite delete operation in windows phone 7.

Int _id = int. Parse(((System.Windows. FrameworkElement)(e.

OriginalSource)).Tag.ToString()); string strDel = "Delete from category where id=" + _id; (Application. Current as App).db. Delete(strDel); ApplicationsListBox.Items.Clear(); LoadData(); Error:Operation not supported on read-only collection.

Please any one tell me how to clear and reload the listbox.... windows-phone-7 link|improve this question asked Mar 20 at 5:36user1237131826 57% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions