Forum Discussion
I turned on 'Show hidden members'
I can see 'ViewInfo' now after selecting MainView in Object Spy.
I am back to my main issue though :(
Scenario desc:
I have a DevX XtraGrid.
A grid table of data.
There is a Search box.
Upon doing a search, any text found, the cell is highlighted in
a different color.
My script wound find that cell and get the backcolor and verify it
is the correct color.
This is what I am trying to get to work again.
Here is my code sample:
function getBackcolor()
{
gridObj = Sys.Process("XAppsApplication").WinFormsObject("ClaimInbox").WinFormsObject("pnlPrimary").WinFormsObject("pnlMain").
WinFormsObject("XClaim").WinFormsObject("XClaim.tbMainPanel").WinFormsObject("XClaim.tpMainPanelWorkItems").
WinFormsObject("XClaim.GridPanel").WinFormsObject("XClaim.grdClaims");
var columnId = "Patient First Name";
rowIndex = 5;
view = gridObj.MainView;
// Get the specified cell and obtain its backcolor
var column = getColumn(gridObj, view, columnId);
Log.Message("column: "+column); // 22
var color = gridObj.MainView.ViewInfo.GetGridCellInfo_2(rowIndex, column); //.Appearance.BackColor;;
//
// 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);
//
}
The '...GetGridCellInfo_2(rowIndex, column);' keeps failing on me.
I have passed in the parms as (int, int) and as (int, str) and I still get an error with mscorlib:
(int, int):
System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'DevExpress.XtraGrid.Columns.GridColumn'.
or
(int, str);
System.ArgumentException: Object of type 'System.String' cannot be converted to type 'DevExpress.XtraGrid.Columns.GridColumn'.
I will keep working at this.
If anyone has any suggestions, please let me know.
Thanks,
JamesK
Related Content
- 5 years ago
- 13 years ago
- 9 years ago
Recent Discussions
- 2 days ago
- 8 days ago
- 11 days ago