When you refer to DataView, is it the DetailsView data-bound control, or is it the ViewData (the data you pass to the RenderView method that holds the model to render)? (I assume you aren't taling about the DataView object within the System.Data namespace!?).
If it's the DetailsView contorl you are talking about, you can simply get access to it by declare a variable in the code-behind with the same name as the ID of the DetailsView control:
protected System.Web.UI.WebControls.DetailsView DetailsView1;
public void Page_Load()
{
DetailsView1.DataSource = this.ViewData;
DetailsView1.DataBind();
}
I hope you are aware of that the MVC Framework don't work with postback and ViewState (not 100% true). The idea is to use Controllers that handle the user input and "events", by using Action methods which takes the user input etc. I think you already know this and will only use the DetailsView to render data, nothing more (if you refer to the DetailsView when you say DataView).
If you want to get access to the model you pass to the RenderView method or added to the Controller's ViewData property, you simply use the ViewData property of the ViewPage (The base class a page inherit).
/Fredrik Normén -
fredrikn @ twitterASPInsider
Microsoft MVP, MCSD, MCAD, MCT
ASPInsidersMy Blog