代码之家  ›  专栏  ›  技术社区  ›  jeffcook2150

将SolrNet查询结果绑定到GridView

  •  0
  • jeffcook2150  · 技术社区  · 15 年前

    1 回复  |  直到 15 年前
        1
  •  1
  •   Community Mohan Dere    8 年前

    因为SolrNet结果集实现 IList<T> ,只需绑定到一个GridView <asp:BoundField> ,并在调用DataBind()之前将结果对象作为数据源传递

    另请参见 Binding Gridview to IList<BusinessObject> that contains an IList<BusinessObject>

    推荐文章