Omar

Omar

  • NA
  • 12
  • 10.2k

MVC display data in view after clicking a row in gridView

Aug 21 2014 9:51 AM
I have an Infragistics gridview in one of my views (ViewLeads).  I have another view (updateLead) that has a bunch of textboxes.  What I want is when I click one of the rows in the gridView (in the ViewLeads View), for it to display all the same data in the corresponding textboxes in the other view (updateLead) for that specific ID of the selected row.  
 
Right now when I click the name it just returns the empty view, with no data.
.
.
 
[HttpGet]
public ActionResult UpdateLead()
{
LoginUser user = Session["User"] as LoginUser;
if (user != null)
{
return View();
}
return RedirectToAction("Login", "Main");
}
 
 
 
 
 I'm pretty new to MVC so I'm really stuck right now. Thank you!

Answers (6)