Forum Discussion
Hi Sal,
In the object spy can you please click on View more members Advanced view and take a snapshot of the complete object properties and methods
Regards,
Sanjay
Hi Sanjay,
Please find more members screenshot
Regards
Sal
- sanjay02888 years agoFrequent Contributor
Hi Sal,
Click cell method should work. I am having a dataGridView and I am working on the clickCell method to click on the particular row.
Below is the sample code which might be of help. You need to modify this code as per your application object
Dim dataGridView
Set dataGridView = Sys.Process("").WinFormsObject("").WinFormsObject("ToolWindowContainer", "", 4).WinFormsObject("outputTW").WinFormsObject("OutputWindowUI").WinFormsObject("tabControl").WinFormsObject("Logging").WinFormsObject("Logging").WinFormsObject("dataGridView")
Call dataGridView.ClickCell(5, "Date and Time")
Call dataGridView.ClickCell(5, "Category")
Call dataGridView.ClickCell(5, "User")
Call dataGridView.ClickCell(5, "Object")
Call dataGridView.ClickCell(5, "Message")
Here Date And Time, category, user etc are the column Names. This method is working fine for me.
Can you try this and let us know.
- Colin_McCrae8 years agoCommunity Hero
Are you sure you associated the class correctly?
If it's a DataViewGrid, it should should have the ClickCell method.
From your previous post:
"Call Aliases.VIP.ProviderTypeForm.tab.Browse.dvg.Click(90, 24)"
This looks like it came from a recording? That is has simply applied a click with co-ordinates suggests it has not recognised the control. If it recognised it as a DataViewGrid, you should have got something more useful that that. Have you tried recording it again with the custom class correctly associated to the base one? What do you get?
Also, are you sure you have populated the parameters (row number & column name) correctly in the call to the method?