如何向 IQueryable 对象添加一列并修改其值

how can I add a column to IQueryable object and modify its values

        var packs = from r in new XPQuery<Roll>(session)
                    select new
                    {
                        Number = r.number
                        Selection = new bool()
                    };
        gcPack.DataSource = packs;

我想在我的网格控件中添加另一列:Selection = new bool()。它将被添加到网格中,但我无法更改其行的值。如何向我的网格添加一个我可以更改其值的列

使用非匿名的简单示例 class。

public class MyLovelyClass
{
    public Int32 Number { get; set; }
    public bool Selection { get; set; }
}

var packs = from r in new XPQuery<Roll>(session)
            select new MyLovelyClass()
            {
               Number = r.number                
            };
gcPack.DataSource = packs;