Sorry for the late response as I was away on holidays.
This["Properties"]("objpropertyGrid") = "Sys.Process(\"RAL.EnterpriseClient\").WinFormsObject(\"Startup\").WinFormsObject(\"tctlMain\").WinFormsObject(\"{RAL.UI.WinForms.Stock}.{S20Config.S20StockConfigGrid}0\").WinFormsObject(\"S20ConfigGrid\").WinFormsObject(\"pnlUpper\").WinFormsObject(\"propertyGrid\")";
mConfigGrid = eval(This["Properties"]("objpropertyGrid")["Value"]);
Our product can be customised based on the customer's need. So the application will be same for 2 different customers but their internal menu options will varry with its names. So to test it for two different customers I have to have different projects as the objects will vary for each customer. (For example a Stock steup screen will have different suffixes based on where they have been placed in the menu hierarchy).
The same piece of code works well for another project but for the current one it fails. Although both the projects are same (Test Complete Project files). It is something to do with the object mapping or so I am not sure.