I know this is pretty standard procedure, but yet due to some custom demands for the way the table is created I'm in trouble finding a way to read the data from the table and pass it back to the controller.
I build my table using records from the database each record holds rowNo and columnNo, and the problem is that each raw may have different number of columns. I couldn't find a proper plugin that can build this so instead I made a simple method that creates a string that I pass to the view.
Just to get the idea for what I'm talking about here is a snippet from the code where you can see how I create <td>..</td> :
sb.Append("<td>" + innerArray[a][0].QuestionText +
"<input type='textbox' value=" +
innerArray[a][0].FieldValue + "></td>");
I know it's not very smart to use StringBuilder and + but for now it works. So however, after building my string and passing it to the view I get this :

And this is the source from the View page source:
<tr>
<td>alabala<input type='textbox' value=></td>
<td colspan=2><input type='textbox' value=yes></td>
</tr>
<tr>
<td colspan=3>alabala<input type='textbox' value=yes></td>
</tr>
<tr>
<td colspan=3>alabala<input type='textbox' value=yes></td>
</tr>
<tr>
<td>alabala<input type='textbox' value=no></td>
<td>alabala<input type='textbox' value=no></td>
<td>alabala<input type='textbox' value=no></td>
</tr>
<tr>
<td>alabala<input type='textbox' value=no></td>
<td colspan=2><input type='textbox' value=no></td>
</tr>
<tr>
<td colspan=3>alabala<input type='textbox' value=></td>
</tr>
<tr>
<td colspan=3>alabala<input type='textbox' value=no></td>
</tr>
It's how you see it - one long string containing the whole HTML code.
all text boxes are editable so what I need is a way to read the data for each text box and save/pass it along with the RowNo and ColumnNo so I can save it back in my database.
View Page Sourcethe custom generated code is shown as one long string in other words - no formatting like the one you did. And the info will be submitted only onSavebutton click. So basically I'll submit the data only once.