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
35
Unable to read the cell data in Grid view Table
posted

Hi,

When I was trying to read cell data from grid view by using Getcelldata method , am not getting exact value and when I use the object.activecell.text  some times it's working fine and some times it's throwing error as object required .it's halting the execution.

 

can u please provide the solution to read the cell data excluding above methods.

Thanks,

Srini

 

 

Parents
No Data
Reply
  • 20872
    Offline posted

    Hello Srini,

    I have been looking into this forum thread and the if the cell is being in an edit mode, than the GetCellData value might differ from the actual text in the cell. If the cell is not in Edit mode than using a similar code will work for you:

    someVar = SwfWindow("YourWindow").SwfTable("YourGrid").GetCellData(0,3)
    Where 0 and 3 are corresponding row and column indexes.

    Also if you need to get the visible text, then you could use the mentioned approach of getting the text from the active cell.

    If you have any other questions please feel free to let us know.

Children
No Data