Forum Discussion
jkrolczy
11 years agoRegular Contributor
I finally got back to this and got it working thanks to the threads provided above for more information and reference to on this change by DevXpress.
Thank you very much to all !!!
Here is my working code example:
//
// Get Grid Cell BackColor
// Passed in Parm: gridObj - grid object path
// Passed in Parm: columnId - String or Int
// Passed in Parm: rowIndex - Row Number (int)
function getGridCellBKColor(gridObj, columnId, rowIndex)
{
var view, columnNum, columnObj, color, Attr;
// Get Grid MainView path
view = gridObj.MainView;
// Get the specified cell and obtain its backcolor
columnNum = getColumn(gridObj, view, columnId);
columnObj = gridObj.MainView.Columns.Item_2(columnNum);
Thank you very much to all !!!
Here is my working code example:
//
// Get Grid Cell BackColor
// Passed in Parm: gridObj - grid object path
// Passed in Parm: columnId - String or Int
// Passed in Parm: rowIndex - Row Number (int)
function getGridCellBKColor(gridObj, columnId, rowIndex)
{
var view, columnNum, columnObj, color, Attr;
// Get Grid MainView path
view = gridObj.MainView;
// Get the specified cell and obtain its backcolor
columnNum = getColumn(gridObj, view, columnId);
columnObj = gridObj.MainView.Columns.Item_2(columnNum);
color = gridObj.MainView.ViewInfo.GetGridCellInfo_2(rowIndex, columnObj).Appearance.BackColor;
// Post the results to the test log
Attr = Log.CreateNewAttributes();
Attr.BackColor = generateRGB(color.R, color.G, color.B);
Log.Message("The backcolor of the specified cell is: " + color.Name, "", pmNormal, Attr);
return color.Name;
}
JamesK
Related Content
- 5 years ago
- 13 years ago
Recent Discussions
- 2 days ago
- 8 days ago
- 11 days ago