0

I'm making app which will provide possibility to input elements to database. Creating form for creating 1 element it easy but for putting to database many at once isn't.

I'm asking if there is some way to create something like winForms's datagridView in asp.mvc5

or it's need to be done using JS framework like knockout?

2 Answers 2

1

If you are using MVC then why don't you use Grid using Jquery

try this http://trirand.com/blog/jqgrid/jqgrid.html

Sign up to request clarification or add additional context in comments.

1 Comment

Looks nice but it doesn't meet my needs. Add row functionality only gives possibility to add one row at once. I need to eg. add at once 30 elements which differs only in their serial number etc.
1

ok then use ajax in jquery

send a json full with data

var mydatamap={"serial":"serial1", "name":,"Person1" ........... }

and populate your grid with that type of data

2 Comments

Ok I think I was unclear with my question. I need to populate database from grid.. Not grid from database.
mudassarkhan.wordpress.com/2009/01/10/… try this, you just need to create XML file from your grid, you can use jquery for traversing each tr td and send the xml string into a generic handler which will perform insert/update/delete

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.