Grid.GetCellColors

table Grid.GetCellColors (

string ObjectName,

number Row,

number Column )

Example 1

-- Display cell colors for cell 1, 1
tbColors = Grid.GetCellColors("DataGrid",1,1);
if tbColors then
if tbColors.Background == GRID_CLR_DEFAULT then
BackgroundColor = "DEFAULT";
else
BackgroundColor = tbColors.Background;
end

if tbColors.Text == GRID_CLR_DEFAULT then
TextColor = "DEFAULT";
else
TextColor = tbColors.Text;
end

Message = "Background = "..BackgroundColor..", Text = "..TextColor;
Dialog.Message("Colors",Message);
end

Gets the cell colors of the grid cell at (1,1) and shows their values in a dialog message.

See also: Related Actions