C# Class Habanero.ProgrammaticBinding.ControlAdaptors.WinFormsDataGridViewAdapter

This is a Control Adapter for any DataGridView control. It wraps the DataGridView control behind a standard interface. This allows Faces to interact with it as if it is a Habanero Control.
Inheritance: WinFormsControlAdapter, IWinFormsDataGridViewAdapter
Mostra file Open project: Chillisoft/habanero.binding

Private Properties

Property Type Description
FireBusinessObjectSelected void

Public Methods

Method Description
BeginEdit ( bool selectAll ) : bool
CancelEdit ( ) : bool
ChangeToPageOfRow ( int rowNum ) : void

When pagination is used, changes the current page to the one containing the given row number. implements IDataGridView

Sort ( IDataGridViewColumn dataGridViewColumn, ListSortDirection direction ) : void
Sort ( string columnName, bool ascending ) : void
WinFormsDataGridViewAdapter ( System.Windows.Forms.DataGridView gridView ) : System
this ( int columnIndex, int rowIndex ) : IDataGridViewCell

Provides an indexer to get or set the cell located at the intersection of the column and row with the specified indexes.

Private Methods

Method Description
FireBusinessObjectSelected ( object sender, EventArgs eventArgs ) : void

Method Details

BeginEdit() public method

public BeginEdit ( bool selectAll ) : bool
selectAll bool
return bool

CancelEdit() public method

public CancelEdit ( ) : bool
return bool

ChangeToPageOfRow() public method

When pagination is used, changes the current page to the one containing the given row number. implements IDataGridView
public ChangeToPageOfRow ( int rowNum ) : void
rowNum int The row that you wish to show the page of. For example, if your grid has /// 30 rows and is set to 20 rows per page, calling ChangeToPageOfRow with an argument /// of 25 will set the page to page 2 since row 25 is on page 2.
return void

Sort() public method

public Sort ( IDataGridViewColumn dataGridViewColumn, ListSortDirection direction ) : void
dataGridViewColumn IDataGridViewColumn
direction ListSortDirection
return void

Sort() public method

public Sort ( string columnName, bool ascending ) : void
columnName string
ascending bool
return void

WinFormsDataGridViewAdapter() public method

public WinFormsDataGridViewAdapter ( System.Windows.Forms.DataGridView gridView ) : System
gridView System.Windows.Forms.DataGridView
return System

this() public method

Provides an indexer to get or set the cell located at the intersection of the column and row with the specified indexes.
public this ( int columnIndex, int rowIndex ) : IDataGridViewCell
columnIndex int The index of the column containing the cell.
rowIndex int The index of the row containing the cell
return IDataGridViewCell