cancel
Showing results for 
Search instead for 
Did you mean: 

How to read rows and column values of TdxDBGrid Delphi

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: How to read rows and column values of TdxDBGrid Delphi

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 Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
5 REPLIES 5
Contributor

Re: How to read rows and column values of TdxDBGrid Delphi

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?

New Contributor

Re: How to read rows and column values of TdxDBGrid Delphi

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

Community Manager

Re: How to read rows and column values of TdxDBGrid Delphi

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 Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
Contributor

Re: How to read rows and column values of TdxDBGrid Delphi

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

Contributor

Re: How to read rows and column values of TdxDBGrid Delphi

Hi,

 

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

 

regards

SivaKartheek Sreeram

New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Join the September Hub-bub to show off, learn and win