xceed datagrid .net 3.8 help

Ask general questions here.
fcsorig
Posts: 2
Joined: Mon Dec 14, 2009 3:50 am

xceed datagrid .net 3.8 help

Post by fcsorig » Mon Dec 14, 2009 4:16 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: xceed datagrid .net 3.8 help

Post by Support Team » Mon Dec 14, 2009 9:47 am

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
.
Image

fcsorig
Posts: 2
Joined: Mon Dec 14, 2009 3:50 am

Re: xceed datagrid .net 3.8 help

Post by fcsorig » Mon Dec 14, 2009 9:07 pm

Thank Alex,
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.
Yes, it is a windows forms control include in ultimate suite of xceed grid.
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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: xceed datagrid .net 3.8 help

Post by Support Team » Tue Dec 15, 2009 9:56 am

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
.
Image