title: Sharepoint 2010: How to dynamically change the view of a list in a web part
body: <p>I have a page with a list of companies and a list of related data.
  I can connect the lists so that when I select a company, I only see that company's related data. Fine.
  However I now need to also change the view of the list of related data. e.g. "Company1" has view "Company1" with one set of columns and filtering, "Company2" has view "Company2" with another set of columns and filtering, etc.</p>
  
  <p>I don't believe this is possible using standard page editing, so customisation is required.
  I haven't got access to the server, so I would prefer a JavaScript solution to this if possible.</p>
  
  <p>Thanks in advance.</p>