我使用 MVC jqGrid 创建网格,这是我填充网格的代码
var jsonData = new
{
total = formTemplatePage.TotalEntriesCount / (pageSize + childrenCount) + 1,
page = gridSettings.PageIndex,
rows = (
gridData.Select(c => new
{
id = c.Item.Id,
cell = new[]
{
c.Number,
c.Item.Name,
c.Item.Id.ToString(),
c.Item.Active.ToString(),
c.Level,
c.ParentId,
c.IsLeaf,
c.Expanded,
c.UnKnown,
}
})).ToList()
};
但我怎么才能得到c.Item.Active == true
呢?