The index of the functions changing UI of DataGrid object. If one of them is clicked, directed to that function description.
@DataGridSetCellBackColor - Set the background color of the cell
@DataGridSetCellTextColor - Set the text color of the cell
@DataGridSetSelectionBackColor - Set the background color of the focused cell
@DataGridSetSelectionTextColor - Set the text color of the focused cell
@DataGridSetColumnHeadersTextColor - Set the text color of column header
@DataGridSetColumnHeadersBackColor - Set the background color of column header
@DataGridSetRowHeadersTextColor - Set the text color of row header
@DataGridSetRowHeadersBackColor - Set the background color of row header
@DataGridSetDefaultCellBackColor - Set the default background color of the cells
@DataGridSetDefaultCellTextColor - Set the default text color of the cells
@DataGridSetUseAlternatingRowColors - Set the cross background color in rows use or not
@DataGridSetAlternatingRowTextColor - Set the cross text color in rows
@DataGridSetAlternatingRowBackColor - Set the cross background color in rows
@DataGridSetBorder - Set the border use or not
@DataGridSetRowHeadersVisible - Set the row header use or not
@DataGridSetHideGridLines - Set the grid line use or not
@DataGridSetAutoSizeRowsMode - Set the row size auto-adjusting mode use or not
@DataGridSetAutoSizeColumnsMode - Set the column size auto-adjusting mode use or not
@DataGridSetColumnHeaderFontSize - Set the font size of column header
@DataGridSetDefaultFontSize - Set the default font size
Related Helps )
@DataGridComboBoxColumnItemAdd()
@DataGridSetColumnHeadersHeight()
DataGridSetCellBackColor sets the background color of the cell of DataGrid object
void @DataGridSetCellBackColor(string class_name, string column_name, int row_pos, int color);
Parameters
string class_name : The class name of DataGrid object
string column_name : The column name
int row_pos : The index of row
int color : The color (RGB)
Return Value
None
Examples
color = @RGB(255, 0, 0)
@DataGridSetCellBackColor("DataGrid1", "ID", 1, color);
Description : Set the background color of the cell of 'DataGrid1' object to red.
Version Information
Supported Version:
DataGridSetCellTextColor sets text color of the cell of DataGrid object.
void @DataGridSetCellTextColor(string class_name, string column_name, int row_pos, int color);
Parameters
string class_name : The class name of DataGrid object
string column_name : The column name
int row_pos : The index of row
int color : The color (RGB)
Return Value
None
Examples
color = @RGB(255, 0, 0)
@DataGridSetCellTextColor("DataGrid1", "ID", 1, color);
Description : Set the text color of the cell of 'DataGrid1' object to red.
Version Information
Supported Version:
DataGridSetSelectionBackColor sets background color of the focused cell of DataGrid object.
void @DataGridSetSelectionBackColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The backgournd color of the focused cell (RGB)
Return Value
None
Examples
@DataGridSetSelectionBackColor("DataGrid1", @RGB(255, 255, 0));
Description : Set the background color of the focused cell of 'DataGrid1' object to green.
Version Information
Supported Version:
DataGridSetSelectionTextColor sets text color of the focused cell of DataGrid object.
void @DataGridSetSelectionTextColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The text color of the focused cell (RGB)
Return Value
None
Examples
@DataGridSetSelectionTextColor("DataGrid1", @RGB(255, 0, 0));
Description : Set the text color of the focused cell of 'DataGrid1' object to red.
Version Information
Supported Version:
DataGridSetColumnHeadersTextColor sets text color of the column header of DataGrid object.
void @DataGridSetColumnHeadersTextColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The text color of the column header (RGB)
Return Value
None
Examples
@DataGridSetColumnHeadersTextColor("DataGrid1", @RGB(0, 0, 255));
Description : Set the text color of the column header of 'DataGrid1' object to blue.
Version Information
Supported Version:
DataGridSetColumnHeadersBackColor sets background color of the column header of DataGrid object.
void @DataGridSetColumnHeadersBackColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The background color of the column header (RGB)
Return Value
None
Examples
@DataGridSetColumnHeadersBackColor("DataGrid1", @RGB(204, 204, 204));
Description : Set the background color of the column header of 'DataGrid1' object to grey.
Version Information
Supported Version:
DataGridSetRowHeadersTextColor sets text color of the row header of DataGrid object.
void @DataGridSetRowHeadersTextColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The text color of the row header (RGB)
Return Value
None
Examples
@DataGridSetRowHeadersTextColor("DataGrid1", @RGB(0, 0, 255));
Description : Set the text color of the row header of 'DataGrid1' object to blue
Version Information
Supported Version:
DataGridSetRowHeadersBackColor sets background color of the row header of DataGrid object.
void @DataGridSetRowHeadersBackColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The background color of the row header (RGB)
Return Value
None
Examples
@DataGridSetRowHeadersBackColor("DataGrid1", @RGB(204, 204, 204));
Description : Set the background color of the row header of 'DataGrid1' object to grey.
DataGridSetDefaultCellBackColor sets the default background color of the cells of DataGrid object.
void @DataGridSetDefaultCellBackColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The default background color of cells (RGB)
Return Value
None
Examples
@DataGridSetDefaultCellBackColor("DataGrid1", @RGB(255, 255, 255));
Description : Set the default backbround color of the 'DataGrid1' object to white.
Version Information
Supported Version:
DataGridSetDefaultCellTextColor sets the default text color of the cells of DataGrid object.
void @DataGridSetDefaultCellTextColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The default text color of cells (RGB)
Return Value
None
Examples
@DataGridSetDefaultCellTextColor("DataGrid1", @RGB(0, 0, 0));
Description : Set the default text color of the 'DataGrid1' object to black.
Version Information
Supported Version:
DataGridSetUseAlternatingRowColors sets the cross background color in rows use or not
void @DataGridSetUseAlternatingRowColors(string class_name, bool useAlternatingColors);
Parameters
string class_name : The class name of DataGrid object
bool useAlternatingColors : The cross background color in rows use or not (1: used, 0: not used)
Return Value
None
Examples
@DataGridSetUseAlternatingRowColors("DataGrid1", 1);
Description : Set the cross background color of 'DataGrid1' object used.
Version Information
Supported Version:
DataGridSetAlternatingRowTextColor sets cross text color in rows.
void @DataGridSetAlternatingRowTextColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The cross text color in rows (RGB)
Return Value
None
Examples
@DataGridSetAlternatingRowTextColor("DataGrid1", @RGB(0, 0, 0));
Description : Set the cross text color in rows of 'DataGrid1' object to black.
Version Information
Supported Version:
DataGridSetAlternatingRowBackColor sets the cross background color in rows of DataGrid object.
void @DataGridSetAlternatingRowBackColor(string class_name, int color);
Parameters
string class_name : The class name of DataGrid object
int color : The cross background color in rows (RGB)
Return Value
None
Examples
@DataGridSetAlternatingRowBackColor("DataGrid1", @RGB(240, 240, 240));
Description : Set the cross background color in rows of 'DataGrid1' object to white-grey.
Version Information
Supported Version:
DataGridSetBorder sets the border use or not.
void @DataGridSetBorder(string class_name, bool hideBorder);
Parameters
string class_name : The class name of DataGrid object
bool hideBorder : The border use or not (1: hide, 0: show)
Return Value
None
Examples
@DataGridSetBorder("DataGrid1", 0);
Description : Set the border of 'DataGrid1' object used.
Version Information
Supported Version:
DataGridSetRowHeadersVisible sets the row header use or not
void @DataGridSetRowHeadersVisible(string class_name, bool hideRowHeaders);
Parameters
string class_name : The class name of DataGrid object
bool hideRowHeaders : The row header use or not (1: hide, 0: show)
Return Value
None
Examples
@DataGridSetRowHeadersVisible("DataGrid1", 0);
Description : Set the row
header of the DataGrid object 'DataGrid1' to be displayed.
Version Information
Supported Version:
The DataGridSetAutoSizeRowsMode function sets the mode of automatic row sizing of a DataGrid object.
void @DataGridSetAutoSizeRowsMode(string class_name, int mode);
Parameters
string class_name : The class name of DataGrid object
int mode : Auto-row size adjustment mode (0: Disable, 5: Fit header cell content, 7: Fit all cell contents, 11: Fit displayed cell contents)
Return Value
None
Examples
@DataGridSetAutoSizeRowsMode("DataGrid1", 7);
Description : Set the row
size of the DataGrid object 'DataGrid1' to fit all the cell contents.
Version Information
Supported Version:
The DataGridSetAutoSizeColumnsMode function sets the mode of automatic column scaling of a DataGrid object.
void @DataGridSetAutoSizeColumnsMode(string class_name, int mode);
Parameters
string class_name : The class name of DataGrid object
int mode : Auto-resize columns mode (1: Disable, 2: Fit to header cell contents, 6: Fit to all cell contents, 10: Fit to displayed cell contents, 16: Fill columns)
Return Value
None
Examples
@DataGridSetAutoSizeColumnsMode("DataGrid1", 6);
Description : Set the
column size of the DataGrid object 'DataGrid1' to fit all the cell contents.
Version Information
Supported Version:
The DataGridSetHideGridLines function is a function that sets whether or not to hide the grid lines of a DataGrid object.
void @DataGridSetHideGridLines(string class_name, bool hide);
Parameters
string class_name : The class name of DataGrid object
bool hide : Grid lines hidden? (1: Grid lines hidden, 0: Show grid lines)
Return Value
None
Examples
@DataGridSetHideGridLines("DataGrid1", 0);
Description : Set it to
display the grid line of the DataGrid object 'DataGrid1'.
Version Information
Supported Version:
The DataGridSetColumnHeaderFontSize function sets the font size of the column header of a DataGrid object.
void @DataGridSetColumnHeaderFontSize(string class_name, int fontSize);
Parameters
string class_name : The class name of DataGrid object
int fontSize : Font size of column headers (in points)
Return Value
None
Examples
@DataGridSetColumnHeaderFontSize("DataGrid1", 12);
Description : Set the
font size of the column header of the DataGrid object 'DataGrid1' to 12
points.
Version Information
Supported Version:
The DataGridSetDefaultFontSize function is a function that sets the default font size for a DataGrid object.
void @DataGridSetDefaultFontSize(string class_name, int fontSize);
Parameters
string class_name : The class name of DataGrid object
int fontSize : Default font size (in points)
Return Value
None
Examples
@DataGridSetDefaultFontSize("DataGrid1", 12);
Description : Set the
default font size of the DataGrid object 'DataGrid1' to 12 points.
Version Information
Supported Version: