I have a div and a gridview in my page as shown below:
id="gdDiv" style="overflow:scroll; height:500px; width:1270px; background-color:Black;" onload="MakeEqualDimension()"> ID="gdView" runat="server" Width="1200px" Height="350px" RowStyle-HorizontalAlign="Center" RowStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="Maroon" HeaderStyle-ForeColor="White" HeaderStyle-Height="5px" RowStyle-BackColor="Black" RowStyle-ForeColor="White" GridLines="Both" ShowFooter="true" RowStyle-Wrap="false" onrowcreated="gdView_RowCreated" onrowdatabound="gdView_RowDataBound" HeaderStyle-Font-Size="10px" RowStyle-Font-Size="10px" HeaderStyle-Font-Bold="true" FooterStyle-Font-Bold="true" FooterStyle-Font-Size="10px"> The gridview is populated dynamically and so its height and width varies depending upon the number of data. I want the div also to change its height and width based on the height & width of the gridview after it is populated. Hence I have tried the following javascript in the client side.But its not working. Please help me. Thanks.
Rajkiran SwainPosted Jun 24, 2017, 12:51 PM
Mobeen RashidPosted Jun 24, 2017, 6:06 AM