Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
11 years ago

How to attach ms datagrid event to ms flexgrid?

Is it possible to attach ms datagrid event to the ms flexgrid in testcomplete?


i have an appln with ms flexgrid i need an event of datagrid. i tried the following methods

in general events i added "msdatgrid.ocx" file then i tried with following code but doesnt wrks.







set p=sys.process('project")
set w=p.form1
set flexgrid=w.msflexgrid1
Events.datagrid.AttachTo(flexgrid)

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Murugan,


     


    According to the "Event Control" article, the only restriction is that the flexgrid object must implement the IDispatch interface. If this requirement is met in your case, I suggest that you contact our TestComplete Support team. Please provide them with the msdatgrid.ocx file you are using - maybe our R&D team will need to analyze it.