Forum Discussion

kcsahu777's avatar
kcsahu777
Contributor
13 years ago
Solved

Got error using clickcell() for grid cell

Our application is .Net application.



I want to select a particular cell of a Grid Control to make status change by using some key action(Ctrl+d) for that cell.



The Grid's ClrFullClassName is "DevExpress.XtraGrid.GridControl"



I tried below code



GridCtrl_mapped_name.ClickCell(1,"Product")



Got Below Error



The Grid view type 'DevExpress.CompositeUI.CustomBandedView' is not currently supported.

  • Hi,


    To solve the problem, try following the steps below:


    1. Open the Object Mapping Options dialog.

    2. In the Developer Express Controls | XtraGrid | GridView group, specify the control's view type (DevExpress.CompositeUI.CustomBandedView).


    Then try using the ClickCell method again.

3 Replies

  • Hi,


    To solve the problem, try following the steps below:


    1. Open the Object Mapping Options dialog.

    2. In the Developer Express Controls | XtraGrid | GridView group, specify the control's view type (DevExpress.CompositeUI.CustomBandedView).


    Then try using the ClickCell method again.

  • Thanks a lot Margaret,



        It worked. :)

      

       We added the "clrfullclassname" from the "MainView" property of that grid control.'

    The name of the clrFullClassName is as below

          'DevExpress.CompositeUI.CustomBandedView' .



    Can you also help us to get the background color of that cell. As we need this to make out the status of  the related transaction.





     
  • Hi,


    Currently, TestComplete does not provide a special property that can return the background color of the cells in such a control. However, you can use native properties of this control in your tests. For information on how to access the desired cell by using native properties, see online articles in the Working With Developer Express XtraGrid - Overview section. To find a native property that returns the background color of the cell, see the documentation of the control.