WebGrid.Bind 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定数据绑定到 WebGrid 实例。
public System.Web.Helpers.WebGrid Bind(System.Collections.Generic.IEnumerable<dynamic> source, System.Collections.Generic.IEnumerable<string> columnNames = default, bool autoSortAndPage = true, int rowCount = -1);
member this.Bind : seq<obj> * seq<string> * bool * int -> System.Web.Helpers.WebGrid
Public Function Bind (source As IEnumerable(Of Object), Optional columnNames As IEnumerable(Of String) = null, Optional autoSortAndPage As Boolean = true, Optional rowCount As Integer = -1) As WebGrid
参数
- source
- IEnumerable<Object>
要显示的数据。
- columnNames
- IEnumerable<String>
包含要绑定的数据列的名称的集合。
- rowCount
- Int32
要在网格的每个页上显示的行的数量。
返回
绑定和填充的 WebGrid 实例。