[]
Gets the value of a grid cell.
public virtual object GetData(int row, int col)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
Type | Description |
---|---|
object | The value of the cell. |
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.
Gets the value of a grid cell, taking into account the value returned by the GetCellCheck(int, int) method.
public virtual object GetData(int row, int col, bool getCheck)
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. |
Type | Description |
---|---|
object |
Gets the value of a grid cell.
public virtual object GetData(int row, string colName)
Type | Name | Description |
---|---|---|
int | row | Row index. |
string | colName | Column name. |
Type | Description |
---|---|
object | The value of the cell. |