Custom datagrid view problem

Oct 12, 2011 at 9:24 AM

Hi all,

   I have been facing problems working with a custom datagrid view. I am able to identify datagrid view but when I try to get the row count, top header it returns null. White isn't able to find rows and topheader inside the datagrid view. When I spy using UISpy on the datagrid it also doesn't identifies the rows and topheader. Topheader and rows are identified in spy only when I spy specifically on them. If I need to write my own code to find those items then please throw some light on it  may be some example or tutorial.

   I am using only C sharp, not using Nunit to run tests. And it is Winform and identified as Table. I tried Listview without any success.


Thanks in advance.



Oct 21, 2011 at 6:41 AM

This trick worked for me to get Grid headers and rows ! thanks a lot




Cheers !