Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
@using (Html.BeginForm("View1", "Login", FormMethod.Post))
{

@grid.GetHtml(
htmlAttributes: new { id = "gridT", width = "1200px" },
columns: grid.Columns(
grid.Column("systables.tabname", "Table Name"),
grid.Column("systables.object_id", " Object Id"),

grid.Column(format: @<text><input type="checkbox" name="ids" value="@item.systables.object_id" />, header: "Select"),
grid.Column(format: (item) =>
{
WebGrid subGrid = new WebGrid(source: item.syscolumns);
return subGrid.GetHtml(
htmlAttributes: new { id = "subT" },
columns: subGrid.Columns(
subGrid.Column("tabname", "Table Name"),
subGrid.Column("object_id", " Object Id"),
subGrid.Column("column_id", "Column Id"),
subGrid.Column("colname", "Column Name"),
subGrid.Column("coltype", "column Type")

@*subGrid.Column(format: @<text><input type="checkbox" value="@syscolumns.object_id" />, header: "Select")*@
)
);
})
)
)
<input type="submit" value="Click" class="btn btn-default btn-primary" />


}
Posted

1 solution

2. I am having 2 webgrids , when i check the rows of a first grid then it delete and moves on to the second grid.
and when i check the rows of a second grid then it delete and moves on to the first grid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900