Hello Muazz,
Welcome to group.
If at least a part of of ID is constant then you can try contains or *= in xpath and css respectively.
I could better answer your question on WebTable locator if you post a cut down version of your html for me.
~ seleniumtests.com