Make control inside grdivew visible

Posted by Oswaldlily under JavaScript on 7/17/2013 | Points: 10 | Views : 1577 | Status : [Member] | Replies : 1
<script language="javascript" type="text/javascript">
function GetFileName(fileUp) {
var gv = document.getElementById("<%=gv.ClientID %>");
var gvRowCount = gv.rows.length;
alert("aa");
for (var j = 2; j < gvRowCount; j++) {
var filePath = fileUp.value;
c = gv.rows[j].cells[15];
document.getElementById(c.childNodes[1].id).innerHTML = filename;

}

return false;
}
</script>


In this Javascript,
gv.rows[j].cells[15] has 3 controls(textbox,label,imagebutton)

c.childNodes[1].id ->first control

i need to make 3rd control visible ->true

c.childNodes[3].visible=false (not working)




Responses

Posted by: aswinialuri-19361 on: 7/30/2013 [Member] Starter | Points: 25

Up
0
Down
hi,
refer this link it might be helpful to you
http://stackoverflow.com/questions/3074444/control-gridview-column-visibility-using-javascript
http://www.codeproject.com/Questions/281768/making-control-visible-in-gridview-asp-net-page
http://forums.asp.net/t/1700992.aspx/1

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response