C# Class 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.
Inheritance: IControlBinder
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
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'.

Private Methods

Method Description
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'.

Method Details

Bind() public method

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.
return void

Bind() public method

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.
return void

Bind() public method

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.
return void