ConfigureCellText

Top  Previous  Next

Specifies the text of a cell in the grid.

[Visual Basic .NET]

Public Function ConfigureCellText(ByVal RowIndex As Integer,

                                                  ByVal ColumnIndex As Integer,

                                                  ByVal Text As String,

                                                  ByVal BackColor As Color,

                                                  ByVal ForeColor As Color) As Boolean

[C#]

public bool ConfigureCellText(int RowIndex,

                                           int ColumnIndex,

                                           string Text,

                                           Color BackColor,

                                           Color ForeColor);

Parameters

RowIndex

Specifies the index (0-based) of the row in which the cell resides.

ColumnIndex

Specifies the index (0-based) of the column in which the cell resides.

Text

Specifies the text that is drawn onto the cell, and an empty string can be assigned here.

BackColor

Specifies cell background's color.

ForeColor

Specifies cell text's color value.

 

Return Value:

If the operation is successful, it returns TRUE; otherwise it returns FALSE. For example, one or two index values are out of bound.