Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i tried for fetching data and rendering the list of model data to webgrid but iam not understanding how to update if any data is updated from webgrid.

What I have tried:

@gridview.GetHtml(columns: new[]

{
gridview.Column("ID"),
gridview.Column("FirstName"),
gridview.Column("LastName"),
gridview.Column("CH",format: @<text><input name="chkbox"
                                  type="checkbox"/></text>),
}

            )
Posted
Updated 24-May-18 1:36am

1 solution

I googled "mvc webgrid update data" and this was the first result

Insert, Update and Delete MVC WebGrid Data using JQuery[^]

If this doesn't satisfy your requirements then google yourself and try some others.
 
Share this answer
 
Comments
saimanisha 24-May-18 7:48am    
yes i already saw that and it doesn't satisfy the requirement as i was new to mvc iam not finding better ways where i can get clear idea.
F-ES Sitecore 24-May-18 8:41am    
If you're new to mvc you're going to struggle to do this, it's a complex task that requires good understand of mvc\http\html. I'd recommend you get a book on mvc, or at least go through some tutorials like the "MVC Music Store" (google it). Any article anyone points you to is going to be similar in nature so you probably won't be able to follow those either, this isn't a trivial task.

When you have a good understanding of mvc (maybe try your task without the webgrid, just using standard mvc controls) you should be able to better understand how you can get your webgrid working.

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