Infragistics XamGrid - Get Rows
I'm trying to grab the rows from a XamGrid we have in our Silverlight app, but I'm having some issues.
In the Object Browser, I see that there is a native Silverlight method called "get_Rows" that supposedly returns a RowCollection, but I'm not sure how to get this value.
I'm using a C# project using the AutomatedQA dll references. The "Grid_LineItems()" function returns the grid from the object browser.
This returns an AutomatedQA.scripts.var object, but I'm not sure how to get my grid's RowCollection out of it:
Grid_LineItems()["get_Rows"]();
This returns a Com Object which I can't cast as anything or I get an exception:
Grid_LineItems()["get_Rows"]().UnWrap()
I tried casting the var object as a RowCollection, but I get a compilation error saying that I can't convert it to that type:
var rowColl = (RowCollection)Grid_QuickplanProject()["get_Rows"]();
So I guess my question is: How do I get my RowCollection object that the get_Rows method is supposed to return?