Home › Forums › WinForms controls › Xceed Grid for WinForms › Access contents Datasource of Xceed.Grid.GridControl › Reply To: Access contents Datasource of Xceed.Grid.GridControl
Since we do not own QTP or are able to test the code with it, I not sure what you are missing.
With the same casting I used in the previous code, I was able to call the Grid through a .dll that was, itself, calling his grid through an other .dll.
In the .dll, I just return the Grid as an object and cast it back to a GridControl at reception.
Here is how I called the .dll in my pass-through .dll class library:
public object ReturnGridThroughDLL()
ClassLibraryForum9845.Class1 objGridThroughGrid = new ClassLibraryForum9845.Class1();
GridControl grid = (GridControl) objGridThroughGrid.functionGrid();
return (object) grid;
Imported from legacy forums. Posted by CharlesB (had 730 views)