DataStore and settings of grid columns etc. like in xml?

I am thinking about use DataStore. But i define whole grid in xml, all used columns, hidden column, order of columns etc. all is fetched from database, different types of joins based on user who is signed in etc. so the best way is to define this on server-side, but how to connect grid to datastore? devide the xml configuration of grid and data?

DataStore can share only data.

You can try to use a combined loading mode for the grid. Use grid.load to load XML with a configuraton only and after that sync grid to a datastore. So configuration and data will be loaded separately.