Developer express Xtragrid add new row and set value
- 4 years ago
Hi,
> Xtragrid gridcontrol
I would recommend to read https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/devexpress-xtragrid/index.html help section.
Also I would recommend to watch this video: https://support.smartbear.com/testcomplete/videos/using-the-wildcard-in-the-name-map/ and to read help section dedicated to NameMapping (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/index.html).
General rule (applicable not only to TestComplete, I believe): it is a good idea to investigate tested application using Object Browser before recording to get an understanding of whether or not the application uses unique and stable identifiers for UI objects. If identifiers are dynamic, then manual creation of required NameMapped elements will provide you with much better results.
Also, quite often, NameMapping of all elements that your test interacts with is not the best idea. Quite often it is better to NameMap just a set or primary containers (windows, forms, control groups, etc.) and then search for the required control within the container using relevant .FindXXX() methods (.FindChild, .FindAllChildren, .WaitAlias, etc.).