I need to populate the currently scheduled tasks in task scheduler 2.0 to a GridView in WPF. My application currently adds and deletes tasks scheduled by the user but I need a way for them to view the current scheduled tasks without having to go to the task scheduler.
UPDATE
Thanks pax I ended up using this method and tying the column info using the .xaml
    private void PopulateGridView()
    {
        //initialize task scheduler 2.0
        var scheduler = new TaskScheduler.TaskScheduler();
        //connect using server, username, password, and domain
        scheduler.Connect(null, null, null, null);
        //set folder to register tasks; "\\" = local directory
        ITaskFolder rootGet = scheduler.GetFolder("\\");
        //for each task in the folder delete the task
        foreach (IRegisteredTask irTasks in rootGet.GetTasks(0))
        {
            dgInstanceView.ItemsSource = rootGet.GetTasks(0);
        }
     }