Forum Discussion

sanjay0288's avatar
sanjay0288
Frequent Contributor
7 years ago

Question on DataGrid

Hi,

   Is there mechanism where a DataGrid or DataGrid View can be checked whether it is read only? Any suggestions would be helpful

2 Replies

  • PhillipW's avatar
    PhillipW
    Senior Member

    Hi 

     

    Not sure if this might help but with data grid views i normally look at the read only property by using script routines or the object property checkpoints:

     

    if (panel["dgvTestCodes"]["ReadOnly"] == true)
    {
    // do something
    }  

     

  • shankar_r's avatar
    shankar_r
    Community Hero

    Not sure TestComplete will have direct way of doing that, Based on the Grid type and their technology we can identify some way to get the status of ReadyOnly.

     

    What kind of  DataGrid you are using?