We can call the Controller renderings already created on a view file. In some scenarios we can not assign the rendering on the item (for ex wildcard scenarios where we need this rendering on specific item not all the items)
@Html.Sitecore().Rendering(itemid, new { DataSource = itmds.ID})
wher Datasource is
Item itmds = Sitecore.Context.Database.GetItem(“Path or Id or some Datasource field”);
Passing Rendering Parameters dynamically
Lets assume we are passing orientation and Background color with the Datasource where Orientation is passed as string.
Item itorient = Sitecore.Context.Database.GetItem( “Path or Id or some Datasource field” );
Item itbccolor = Sitecore.Context.Database.GetItem(” Path or Id or some Datasource field );
string Orient = string.Format(“Orientation={0}&Background Color={1}”, itorient.Name, itbccolor.ID);