Ask a Question

How to read rows and column values of TdxDBGrid Delphi

SOLVED
pradnyadhole
New Contributor

How to read rows and column values of TdxDBGrid Delphi

Hi All,

I am trying to automate Delphi 5 application testing using TestComplete tool.
I want to read rows and columns of TdxDBGrid component but TestComplete considers grid as whole component while adding a checkpoint.
I checked with OCR action/checkpoint but it is not providing exact values.
I have also added TdxDBGrid in object mapping of project, but no luck.
Can someone please suggest how to read rows and columns values of TdxDBGrid grid.

 

Thanks

5 REPLIES 5
anupamchampati
Frequent Contributor

1. Go to parent item of TdxDBGrid , may be it is Grid  - you can click on the parent (...) three dots on the name mapping window

2. Check the rowcount properties for the grid using : Grid.wRowCount(ViewId)

 

do let me know if its helps?

Thank you Anupam, but it is not showing Parent property in name mapping window.

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @pradnyadhole,

 

I suggest that you start with the following article - check that TestComplete supports the control version you use in your app, and all the requirements are met:

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/borland/tdbg...

 

The following article contains typical operations you can do with your control in TestComplete:

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/borland-tdbgrid/ind...

 

I hope it helps.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



@pradnyadhole  Can you please share the screenshot of name mapping window.

sivakarthik
Contributor

Hi,

 

use  grid.wValue[row, colum, view] approach

 

regards

SivaKartheek Sreeram

cancel
Showing results for 
Search instead for 
Did you mean: