How to look for a value in a web application datatable and click on it?

The way I would troubleshoot this would be to use the Find Children activity on your table returned after you have searched for a contract number. Set this to Find Descendants.

Then output the selector string for every element on that table. This way, you’ll be able to identify the structure behind it and how you will be able to build selectors which are dynamic enough for you to eventually use.

This may help explain how to use the activity for your needs: How to get all selectors from one web page