FormsDataGridView

Class Overview
Provides operations on controls of type System.Windows.Forms.DataGridView.



public FormsDataGridView (WindowControl src)
Description
Constructor.

Parameter
src
The underlying window control.



public FormsDataGridView (WindowsAppFriend app, AppVar appVar)
Description
Constructor.

Parameters
app
Application manipulation object.
appVar
Application variable object for the control.



public int ColumnCount {get;}
Description
Returns the number of columns in the data grid.



public Cell CurrentCell {get;}
Description
Returns the currently selected cell.



public int RowCount {get;}
Description
Returns the number of rows in the data grid.



public Cell [] SelectedCells {get;}
Description
Returns the currently selected cells.



public int [] SelectedRows {get;}
Description
Returns the currently selected row numbers.



public void EmulateCellCheck (int col, int row, bool isChecked)
Description
Sets the checked state state of a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
isChecked
Checked state to use.



public void EmulateCellCheck (int col, int row, bool isChecked, Async async)
Description
Sets the checked state of a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
isChecked
Checked state to use.
async
Asynchronous execution object.



public void EmulateChangeCellComboSelect (int col, int row, int index)
Description
Sets the selected value of a combo box cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
index
The index to select.



public void EmulateChangeCellComboSelect (int col, int row, int index, Async async)
Description
Sets the selected value of a combo box cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
index
The index to select.
async
Asynchronous execution object.



public void EmulateChangeCellSelected (CellSelectedInfo [] cells)
Description
Changes the cell selected state of cells.

Parameter
cells
Cell selection information.



public void EmulateChangeCellSelected (Async async, CellSelectedInfo [] cells)
Description
Changes the cell selected state of cells.

Argument
async
Asynchronous execution object.
cells
Cell selection information.



public void EmulateChangeCellText (int col, int row, string text)
Description
Modifies the text of a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
text
The text to use.



public void EmulateChangeCellText (int col, int row, string text, Async async)
Description
Modifies the text of a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
text
The text to use.
async
Asynchronous execution object.



public void EmulateChangeCurrentCell (int col, int row)
Description
Sets the currently selected cell.

Parameters
col
Column number of the cell to select.
row
Row number of the cell to select.



public void EmulateChangeCurrentCell (int col, int row, Async async)
Description
Sets the currently selected cell.

Parameters
col
Column number of the cell to select.
row
Row number of the cell to select.
async
Asynchronous execution object.



public void EmulateChangeRowSelected (RowSelectedInfo [] rows)
Description
Sets the currently selected rows.

Parameter
rows
Row selection information.



public void EmulateChangeRowSelected (Async async, RowSelectedInfo [] rows)
Description
Sets the currently selected rows.

Parameters
async
Asynchronous execution object.
rows
Row selection information.



public void EmulateClearSelection ()
Description
Clears any selections.



public void EmulateClearSelection (Async async)
Description
Clears any selections.

Parameters
async
Asynchronous execution object.



public void EmulateClickCellContent (int col, int row)
Description
Performs a click in a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.



public void EmulateClickCellContent (int col, int row, Async async)
Description
Performs a click in a cell.

Parameters
col
Column number of the cell.
row
Row number of the cell.
async
Asynchronous execution object.



public void EmulateDelete ()
Description
Emulates a row deletion operation.



public void EmulateDelete (Async async)
Description
Emulates a row deletion operation.

Parameter
async
Asynchronous execution object.



public string GetText (int col, int row)
Description
Returns the text of a cell in the table.

Return value
The cell's text.

Parameters
col
Column number of the cell.
row
Row number of the cell.



public string [] GetText (int startCol, int startRow, int endCol, int endRow)
Description
Returns the text of the table cells in the specified range.

Return value
Cell values.

Parameters
startCol
Starting column number.
startRow
Starting row number.
endCol
Ending column number.
endRow
Ending row number.

JR