Forum Discussion

aminsaurabh's avatar
aminsaurabh
Occasional Contributor
11 years ago

Testcomplete 10.20 Devexpress data grid view card access problem

i am trying to get the bounds of a specific card within a XtraGrid control the version of my control is 12.2.7 and i am trying to use  the following code:



gridobj.MainView.get_ViewInfo.Cards.CardFieldInfoBy(RowHandle, Column).Bounds



but i am not able to get the cards property !!

2 Replies

  • aminsaurabh's avatar
    aminsaurabh
    Occasional Contributor


    well i finally got the solution for it , found an alternative.



    gridobj.MainView.get_ViewInfo.RowsInfo.GetInfoByHandle(rowindex).Cells.Item(coloumindex)


    and for data gridview of cards :



    grid.MainView.get_ViewInfo.VisibleCards.Item(rowindex)


    this worked for me:



    use Bounds.left and Bounds.Top