Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
Images in Ultrawingrid cells and rows
posted

Hi,

Our current application uses win ultragrid. User can create new rows and delete rows from this grid.

When ever user enters  an invalid text for a cell in a row, the cell displays a warning icon (16 X 16 png) along with the invalid text.

Similarly, some conditions generate a row level error and the warning icon is shown for the whole row(the image will be displayed at the start of the row having errors).

I am trying to retrieve this image object from QTP.

I have tried the following code(Assuming row 0 has warning icon)

Dim expression

Dim img

expression = "Rows[0].Appearance.Image"

Set img = SwfWindow(...).SwfTable(..).GetNAProperty(expression)

Similarly, for the cells(assuming cell 1 in row o has warning image)

expression = "Rows[0].Cells[1].Appearance.Image"

Set img = SwfWindow(...).SwfTable(..).GetNAProperty(expression)

 

But both of these fail, even though the corresponding row and cells show a warning image.

Can some one help me out with the correct properties to use to get these images?

Thanks in advance.

 

Satish.