[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.GetData

GetData Method

GetData(int, int)

Gets the value of a grid cell.

Declaration
public virtual object GetData(int row, int col)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

Returns
Type Description
object

The value of the cell.

Remarks

The GetData(int, int) method returns the raw data stored in a specific grid cell. It is equivalent to using the grid's indexer. For example:

object foo = flex.GetData(1, 1);
object bar = flex[1, 1]; // same thing

The data displayed on the grid might be different from the raw data, depending on the setting of the Format and DataMap properties. To obtain the display value (which is always a string), use the GetDataDisplay(int, int) method instead.

GetData(int, int, bool)

Gets the value of a grid cell, taking into account the value returned by the GetCellCheck(int, int) method.

Declaration
public virtual object GetData(int row, int col, bool getCheck)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

bool getCheck

Whether to take into account the value of the GetCellCheck(int, int) method.

Returns
Type Description
object

GetData(int, string)

Gets the value of a grid cell.

Declaration
public virtual object GetData(int row, string colName)
Parameters
Type Name Description
int row

Row index.

string colName

Column name.

Returns
Type Description
object

The value of the cell.