Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is working fine without gridview.
C#
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Automatic Resize TextBoxtitle>
<script type="text/javascript">
function setHeight(txtdesc) {
txtdesc.style.height = txtdesc.scrollHeight + "px";
}
script>
head>
<body>
<form id="form1"  runat="server">
<asp:TextBox ID="txtDesc" runat= "server" TextMode="MultiLine" onkeyup="setHeight(this);"onkeydown="setHeight(this);" />
</form>
</body>
</html>

But i want place this textbox in gridview.. but its getting problem..

Need Help....

Warm Regard

SHIVANAND NAGARABETTA.
Posted
Updated 31-May-12 19:58pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900