We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Unable to get correct row count for Essential Grid

Thread ID:





98138 Feb 8,2011 04:51 PM Dec 12,2011 08:32 AM Windows Forms 3
Tags: Test Studio
Samip Patel
Asked On February 8, 2011 04:51 PM


Our product creates extra rows when it is low on available rows and a new entry is saved. Product only displays filled rows while hiding any extra empty rows.

So, for example, let us say, 20 rows are displayed in our product but there might be more 20 actual rows but empty rows are not visible to user.

I am trying to get current row count using QTP to find out last visible row (which is the row available for addition of new data) but always getting 0 as row count.

My code in QTP is:
MsgBox SwfWindow("Product").SwfObject("Grid").GetRowCount()

My configuration is:

QTP 11.00
Essential Studio
Syncfusion QTP add-in

Would appreciate if anybody can help me figure out how to get correct visible row count in this situation?

Jisha Joy [Syncfusion]
Replied On February 14, 2011 05:04 AM

Hi Samip,

We are unable to see the issue mentioned. Could you please provide us a sample that shows the issue while testing?.


Replied On December 5, 2011 06:54 AM


I am facing a similar issue wherein I am not able to perform any action on a grid.(eg GetCellData, RowCount etc)
Syncfusion version used be dev is v8.4.0.10.
My configuration is same:

QTP 11.00
Essential Studio
Syncfusion QTP add-in

I have made changes to Swfconfig.xml file as mentioned in help docs.

C:\Program Files\Syncfusion\Essential QTP\\Bin\2.0\GridControl.dll

C:\Program Files\Syncfusion\Essential QTP\\Bin\2.0\GridControl.dll

Could anyone please help on this?

Asarudheen S [Syncfusion]
Replied On December 12, 2011 08:32 AM

Hi Hi Jjain,

Thanks for the update.

We could not able to reproduce the issue with your config.xml.
Could you please send us simple sample to show your issue so that we could look into the issue and provide you a better and exact solution?

Appreciate any additional information.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.