mercredi 3 juin 2015

how to pass grid view data to the other view as per selected id

//this is my web grid

using (Html.BeginForm())
{
    <div id="content">
        @grid.GetHtml(
          tableStyle: "webgrid-table",
          headerStyle: "webgrid-header",
          footerStyle: "webgrid-footer",//properties
          alternatingRowStyle: "webgrid-alternating-row",//this are the 
          rowStyle: "webgrid-row-style",
          columns: grid.Columns(
              grid.Column(header: "job_id", format: @<text><div>@(item.WebGrid.Rows.IndexOf(item) + 1)</div></text>),
              grid.Column(columnName: "location", header: "location"),
              grid.Column(columnName: "jobtitle", header: "jobtitle"),
              grid.Column(columnName: "technology", header: "technology"),
              grid.Column(columnName: "job_description", header: "job_description"),
              grid.Column(columnName: "category", header: "category"),
              //this is link for navigating to next page with selected id                                                 
              grid.Column(columnName: "Apply",format:@<text>@Html.ActionLink("Apply", "JobDetails", "Client")</text>)
         ))
    </div>
}

Aucun commentaire:

Enregistrer un commentaire