Angshuman
15 years agoOccasional Contributor
Problem with XCeed Datagrid
I am trying to read the values in the cells of an XCeed datagrid (basically, the control I am using is one that is derived from it). Please take a look at the attached image to get the object hierarchy I am looking at.
I am trying to locate a cell in the following ways, but none of them works:
------------------------------------------
var IE,AllServicesCard,tableControl;
var RowNum = 2;
var ColNum = 1;
PropArray = new Array("ClrClassName", "WPFControlOrdinalNo");
ValuesArray = new Array("DataRow", 1);
IE = Aliases.iexplore;
AllServicesCard = IE.Find("ClrClassName","AllServicesCardMainPage",20);
LogInfo(AllServicesCard);
tableControl = AllServicesCard.tableControl;
var Row;
Row = tableControl.WPFObject("DataRow","",RowNum);
//Row = tableControl.Find(PropArray, ValuesArray, 5);
var Col = Row.WPFObject("DataCell","",ColNum);
var caption = Col.WPFControlText;
----------------------------------------------------------------
As you can see, I am trying out both the 'Find' method and the WPFObject route, but none of them works. The error I get is like 'the object doesn't support the property or method'.
Please help.
Thanks in advance.
I am trying to locate a cell in the following ways, but none of them works:
------------------------------------------
var IE,AllServicesCard,tableControl;
var RowNum = 2;
var ColNum = 1;
PropArray = new Array("ClrClassName", "WPFControlOrdinalNo");
ValuesArray = new Array("DataRow", 1);
IE = Aliases.iexplore;
AllServicesCard = IE.Find("ClrClassName","AllServicesCardMainPage",20);
LogInfo(AllServicesCard);
tableControl = AllServicesCard.tableControl;
var Row;
Row = tableControl.WPFObject("DataRow","",RowNum);
//Row = tableControl.Find(PropArray, ValuesArray, 5);
var Col = Row.WPFObject("DataCell","",ColNum);
var caption = Col.WPFControlText;
----------------------------------------------------------------
As you can see, I am trying out both the 'Find' method and the WPFObject route, but none of them works. The error I get is like 'the object doesn't support the property or method'.
Please help.
Thanks in advance.