Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

MVC Excel look and feel grid

Posted on 2014-02-01
1
910 Views
Last Modified: 2014-02-02
I am looking for a clean example of a grid that is configured like Excel.

The grid will show 5 columns.
Scout Group#,  Email, F Name, L Name, Phone Number.

The grid will always show 20 rows.
(1) To add a new child, just type in any blank row.
(2) To edit a row just type of the existing data.  
(3) To delete a row, just blank out the columns.  Just like a basic ASP or Windows Grid.  

  I am pretty rusty at coding but I do have the JQuery DataTable showing the desired information.  I have not found a way to read the grid data back to the controller.

Can you point me towards an article or example that will do a task like this?  Including how to read back the entire grid during postback?

I do not need advanced features, performance is not a consideration.
Thank you.
0
Comment
Question by:wilfordrocks
1 Comment
 

Accepted Solution

by:
wilfordrocks earned 0 total points
ID: 39827708
For anyone else's reference, this link is excellent.
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx/
The simple inputs shown in the example work perfectly well in a table.

<table>
        <thead>

        </thead>
        <tbody>
            <tr>
                <td><input type="text" name="[0].Title" value="Curious George0" /></td>
                <td><input type="text" name="[0].Author" value="H.A. Rey" /></td>
                <td><input type="text" name="[0].DatePublished" value="2/23/1973" /></td>

----
 public ActionResult UpdateInts(ICollection<Book> ints)
        {

            return View(ints);
        }
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
"Video DataSource is Offline or not responding"  - why? 1 69
Convert datetime to time string 10 28
Open a link in vb.net 2 15
Adding items to a C# list incrementally 5 28
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question