Introducedin | ||||
---|---|---|---|---|
|
Description |
---|
Excerpt |
---|
Sets an IEnumerable<T> as a data source to bind to template data markers. |
Signature | ||||
---|---|---|---|---|
| ||||
public void BindData(System.Collections.Generic.IEnumerable<T> sourcedataSource, System.String dataSourceName, DataBindingProperties property) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Sub BindData(ByVal sourcedataSource As System.Collections.Generic.IEnumerable(Of T), ByVal dataSourceName As String, ByVal [property] As DataBindingProperties) |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The IEnumerable<T> collection to use as the data source. |
...
Param | ||||
---|---|---|---|---|
| ||||
The DataBindingProperties object which contains information about how the data should be bound to the template. |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
|
Exception | ||||
---|---|---|---|---|
| ||||
| ||||
Exception |
ArgumentException | ArgumentException |
Remarks |
---|
You can set several data sources for a single template. Use the following methods to set template data sources: BindCellData, BindColumnData, BindRowData, and BindData. |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|