cancel
Showing results for 
Search instead for 
Did you mean: 

Grid column header click and move the column

Contributor

Grid column header click and move the column

Hi everyone,

 

I have a question regarding the grid column headers.

Actually what I am trying to do is, to test the grid column move function. 

 

For that I have used the Grid.ClickColumHeader(Id, 0)

is there a way to move the column place5 to 1 or 1 to  3like that in test Complete. ?

 

any info or help material would be great help

 

Thanks and Regards

SivaKartheek Sreeram

4 REPLIES 4
Contributor

Re: Grid column header click and move the column

 

Actually for moving I can use the obj.Drag()  but, in that i have to use the co-ordinates. is there any alternate fo that with out using co-ordinates I can drag and place the column.

 

2. I can access the Grid customization window in grid by click(5, 7) but I don't want like that in the column header I am unable access that via name of the colum. Actuall in the grid column header it places on -1 side is there a way to access it?

3. Is it posisible to get column width and height in the grid ? if I use the getwidth() method its giving me the following the entire grid width. Actually I don't need that. I need only the column width.

 

any info or help would be great help

Thanks and regards

SivaKartheek Sreeram 

Community Manager

Re: Grid column header click and move the column

Hi SivaKartheek,

 

What exact grid control do you use?

I recommend that you check the Working With Grids article. Do you see your control in the list of supported controls? If you see, in this case, TestComplete provides special support of such controls and you can use special methods and properties to access the grid.

 

Otherwise, you can make TestComplete treat your control as a support one by using the Object Mapping feature.

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Contributor

Re: Grid column header click and move the column

Hi Tanya,

 

I am using the TcxGridSite. I have already checked that link. But I didn't get idea how to proceed further. As you can see my earlier message  thats what I got from that link.

 

Do you have any other ideas

 

thanks and regards

SivaKartheek Sreeram

 

 

Community Manager

Re: Grid column header click and move the column

Hi SivaKartheek,

 

If the grid provides a native Drag method that will work based on column names or some other parameters, you can call this method from TestComplete. As far as I remember, TcxGridSite is developed by Developer Express. I've found a discussion where users are dragging a cell from one grid to another one.

https://www.devexpress.com/Support/Center/Question/Details/T449739/drag-and-drop-grid-cell-to-anothe...

 

I think it should help you understand the methods and properties you can call from TestComplete.

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Ask a SmartBear
Top Kudoed Authors