Forum Discussion
Hi,
Can you please spy on the control and provide a snapshot showing the properties and methods for that particular control
Hi Sanjay,
Please find screenshot as requested.
Regards
Sal
- sanjay02888 years agoFrequent Contributor
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
- Colin_McCrae8 years agoCommunity Hero
That looks like a custom class.
My guess, is the base class is a DataViewGrid (https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.110).aspx) .... but your dev team should be able to confirm that.
If it is, you just need to enable it to associate it with the base class so you can use it's methods and properties.
If it is, there are some suggestions in here:
- msal44348 years agoOccasional Contributor
Hi Colin,
Yes, it is datagridview and tried your solution but couldn't get .Clickcell.
Regards
sal
- msal44348 years agoOccasional Contributor
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.