C# Класс Adf.Web.Binding.DataGridBinder

Represents a binder for a System.Web.UI.WebControls.DataGrid. Provides methods to bind the properties of a System.Web.UI.WebControls.DataGrid to values.
Наследование: IControlBinder
Показать файл Открыть проект

Открытые методы

Метод Описание
Bind ( object control, IEnumerable values ) : void

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified list.

The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.

Bind ( object control, object values ) : void

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified array of objects.

The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.

Bind ( object control, object value, PropertyInfo pi ) : void

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified System.Data.DataSet.

The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.

Приватные методы

Метод Описание
SetPaging ( DataGrid grid, int rows ) : void

Sets the paging related properties of the specified System.Web.UI.WebControls.DataGrid. The specified number of records determines the visibility of the pager.

The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.

Описание методов

Bind() публичный Метод

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified list.
The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.
public Bind ( object control, IEnumerable values ) : void
control object The , the 'DataSource' /// property of which is to bind to.
values IEnumerable The list to bind.
Результат void

Bind() публичный Метод

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified array of objects.
The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.
public Bind ( object control, object values ) : void
control object The , the 'DataSource' /// property of which is to bind to.
values object The array of objects to bind.
Результат void

Bind() публичный Метод

Binds the 'DataSource' property of the specified System.Web.UI.WebControls.DataGrid with the specified System.Data.DataSet.
The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.
public Bind ( object control, object value, PropertyInfo pi ) : void
control object The , the 'DataSource' /// property of which is to bind to.
value object The to bind.
pi System.Reflection.PropertyInfo The property of the /// to bind to. Currently not being used.
Результат void