Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I am beginner to mvc.. i need to develop Purchase Order form.. I have text boxes and below grid. I add more items in grid to po. How to add Items in grid.
any js or plugins for that type of grid..

What I have tried:

I have text boxes and below grid. I add more items in grid to po. How to add Items in grid.
Posted
Updated 29-Jun-16 18:22pm

1 solution

web grid in MVC is nothing but a collection of TR and TD (rows and columns), conceptually you need to create a empty row (TR) and add it in webgrid, you can use Partial view in a div with display property as 'none', when you click on Add item then set the display property to block with the help of jQuery
see below link for more details
Add a new Row in WebGrid using MVC4[^]
 
Share this answer
 
Comments
Vivek.anand34 30-Jun-16 1:33am    
Thank u... What is DemoEntity in HomeController code...
Vivek.anand34 30-Jun-16 1:42am    
Then.. IEnumerable dynamictable.models.tblcustomerinformation
here DynamicTable is "The Type or namespace name could not be found error message.

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