I have windows application that heavily rely on xceed datagrid .net 3.8
i choose to use Ranorex for software automation. ranorex is easy to used but im not lucky for now how to capture the datarow and cells value of my grid. i tried the sample in this forum about xceedgrid wpf but i think its not working .net 3.8 grid in xceed "not sure".
Any one solve or have sample script to get the rows or cell value in the table because ranorex cannot identify the rows its sees only as element not rows inside the table.
i create a sample (in MS Datagridview ranorex spy identify all the properties of the table).
Pls. i need help on this.
Thank you
xceed datagrid .net 3.8 help
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: xceed datagrid .net 3.8 help
The Xceed DataGrid should work just fine since Xceed version 3.1 (see demo at Xceed homepage, http://xceed.com/Grid_WPF_Demo.html). Where did you get V3.8, I thought the latest Xceed DataGrid version is 3.5?
If Ranorex can't identify the rows/cell individually, that means the control does not make those UI elements available to Ranorex. If the control is a .NET Windows Forms Control, you can use Control.InvokeRemotely to get data from the individual rows/cells. If it is a WPF control, you could implement an additional AutomationPeer (see http://msdn.microsoft.com/en-us/library ... npeer.aspx) that provides access to rows and cells - actually, Xceed should have done that
Regards,
Alex
Ranorex Support Team
If Ranorex can't identify the rows/cell individually, that means the control does not make those UI elements available to Ranorex. If the control is a .NET Windows Forms Control, you can use Control.InvokeRemotely to get data from the individual rows/cells. If it is a WPF control, you could implement an additional AutomationPeer (see http://msdn.microsoft.com/en-us/library ... npeer.aspx) that provides access to rows and cells - actually, Xceed should have done that

Regards,
Alex
Ranorex Support Team
Re: xceed datagrid .net 3.8 help
Thank Alex,
http://xceed.com/Grid_WinForms_New.html
Ok i try this Control.Invoke Remotely but if can you give sample code in vb how use Control.Invoke Remotely to capture the rows/cell of the grid its very helpful.
Thanks
Yes, it is a windows forms control include in ultimate suite of xceed grid.If Ranorex can't identify the rows/cell individually, that means the control does not make those UI elements available to Ranorex. If the control is a .NET Windows Forms Control, you can use Control.InvokeRemotely to get data from the individual rows/cells.
http://xceed.com/Grid_WinForms_New.html
Ok i try this Control.Invoke Remotely but if can you give sample code in vb how use Control.Invoke Remotely to capture the rows/cell of the grid its very helpful.
Thanks
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: xceed datagrid .net 3.8 help
Sorry, but I don't know the Xceed DataGrid API, so I can't provide you a code snippet to capture the rows/cells. All I can give you as a description on how to use Control.InvokeRemotely. Please, read this blog and this forum post, which both provide samples for on that method.
Regards,
Alex
Ranorex Support Team
Regards,
Alex
Ranorex Support Team