Hi,
I tried some code for your requirement.check this once
In your data control place below code
<td onclick="f1(this,<%#Eval("compid") %>)">
<asp:label id="Lbluid" runat="server" text="<%#Eval("compid") %>" xmlns:asp="#unknown"></asp:label>
</td>
It can be add from design side or databound event.
And the javascript tag contains following code
function f1(tid, asr) {
$('#basic-modal-content').modal();
$("#preval").html(tid.innerText);
$("#hdncid").text(asr);
}
function updatval() {
$.post("page.aspx?action=modify", { id: $("#preval").val(), val: $("#txtcrtval").val() }, function (data) {
});
}
In the above code tid.innerText means values of that cell
And asr means id of that row data.In my emaple company id is asr.
I update that cell using asr only that means companyid.
you can add to dts in datacontrol so you can retrieve
I hope you'll understood what I said
All the Best