Is it possible to use a datagrid control in a mvc "view"?
How would I bind it to a datasource?
Is it possible to use a datagrid control in a mvc "view"?
How would I bind it to a datasource?
check this tip by Stephen Walther for implementation ideas
another option would be to buy a third party control, such as this
just started playing with the grid from http://www.codeplex.com/MVCContrib
initially it looks like a good solution
Check this out, using jQuery grid with ASP.NET MVC: http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx
You can use also the Insert/update/delete datagrid of my MVC Controls Toolkit available here on codeplex: http://mvccontrolstoolkit.codeplex.com/. Here you can download a complete example, here the datagrid working and here a tutorial. It works completely client side and mantains thechange set between postback. Yes it mantains Changeset, this means, you can access both old version and modified version of each record to see what changes to pass to the DB(what need to be modified deleeted or inserted). This Changeset is mantained after several postback till you either confirm or cance the modifications on the server side