how to add,update and delete the item to listview using grouping. this is my code.........

public ObservableCollection news { get; set; }

    public MainPage()
    {
        InitializeComponent();

        news = new ObservableCollection<Listgrouping>();

        news.Add(
            new Listgrouping("A", "A")
            {
             new Data() { Name = "Aljazareen News", ShortDetail="Top_10", FullDetail="Report all the good news.", myimage="aljazeeranew.jpg"},
             new Data() { Name = "Amazing News" , ShortDetail="Good" , FullDetail="Show all of the world amazing news.", myimage="aljazeeranew.jpg"}
             });
        news.Add(
            new Listgrouping("B", "B")
            {
            new Data() { Name = "BBC News", ShortDetail="Hedline", FullDetail="Show the new news.", myimage="bbnew.png" },
             new Data() { Name = "Basic News" , ShortDetail="Short News" , FullDetail="Show the Short News Time to Time.", myimage="bbnew.jpg"}
             });
        news.Add(
            new Listgrouping("C", "C")
            {
                new Data() {Name="CIN News", ShortDetail="Ind", FullDetail="Like a cinima news.", myimage="cnimanew.jpg"},
                new Data() { Name="Code News", ShortDetail="Engnieer", FullDetail="Show all the Development Tools.", myimage="cnimanew.jpg"}
            });

}

private void Update_Clicked(object sender, EventArgs e)
{
}

Answers

Sign In or Register to comment.