Hi,
I have a XamDataGrid that is divided in to categories.
And each category is then further subdivided into Child and GrandChild items. I am able to get the record count of categories/parent by using XamDataGrid("Grid").RecordCount
Now I need to get the recordcount for each Child.
This is what I was using for retreiving data in the Child cell:
Name = WpfWindow("WpfWindow").XamDataGrid("Grid").GetCellData("{0}{0}[1]")
Any help greatly appreciated.
Thanks, Suseela
TestAdvantage for WPF, has the concept of Active data area, which is if there is an active is cell is the data area that the cell is part of, otherwise it is the root level. So to get the record count of a child region you need to first expand the the parent record of the child, then activate a cell in that data area, then Record count will be correct, such as:
WpfWindow("WpfWindow").XamDataGrid("WPFGrid").ExpandRecord "{0}"WpfWindow("WpfWindow").XamDataGrid("WPFGrid").ActivateCell "{0}[0]"MSGBOX WpfWindow("WpfWindow").XamDataGrid("WPFGrid").RecordCount
Hope this helps,
How to get the cell value from the grid. I saw there is a function GetCellData so i tried
Print WpfWindow("gDispatch Lite").XamDataGrid("XamDataGrid1").GetCellData("{3}{2}")
but i was getting some error argument malformed
so can you please tell what is the correct syntax if i want get the value of cell row-3,column-2
Thanks in Advance
-Chetan