[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.GetDataDisplay

GetDataDisplay Method

GetDataDisplay(int, int)

Gets the value in a grid cell, formatted as a string.

Declaration
public virtual string GetDataDisplay(int row, int col)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

Returns
Type Description
string

A string containing the data displayed in the given grid cell.

GetDataDisplay(int, string)

Gets the value in a grid cell, formatted as a string.

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

Row index.

string colName

Column name.

Returns
Type Description
string

A string containing the data displayed in the given grid cell.

GetDataDisplay(int, int, out Image, out CheckEnum)

Gets the value in a grid cell, formatted as a string, and the image or checkbox in the cell.

Declaration
public virtual string GetDataDisplay(int row, int col, out Image img, out CheckEnum chk)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

Image img

Returns the image in the cell.

CheckEnum chk

Returns the checkbox value in the cell.

Returns
Type Description
string

A string containing the data displayed in the given grid cell.

Remarks

This method provides a way to retrieve all the data that is displayed in a cell with a single call.

The image returned in the img parameter may be an image assigned to the cell using the SetCellImage(int, string, Image) method, a mapped value obtained through an ImageMap, or an image stored as cell data (when the cell's DataType is set to Image).

The CheckEnum value returned in the chk parameter is the value returned by the GetCellCheck(int, int) method.

GetDataDisplay(int, string, out Image, out CheckEnum)

Gets the value in a grid cell, formatted as a string, and the image or checkbox in the cell.

Declaration
public virtual string GetDataDisplay(int row, string colName, out Image img, out CheckEnum chk)
Parameters
Type Name Description
int row

Row index.

string colName

Column name.

Image img

Returns the image in the cell.

CheckEnum chk

Returns the checkbox value in the cell.

Returns
Type Description
string

A string containing the data displayed in the given grid cell.

Remarks

This method provides a way to retrieve all the data that is displayed in a cell with a single call.

The image returned in the img parameter may be an image assigned to the cell using the SetCellImage(int, string, Image) method, a mapped value obtained through an ImageMap, or an image stored as cell data (when the cell's DataType is set to Image).

The CheckEnum value returned in the chk parameter is the value returned by the GetCellCheck(int, int) method.