troubleshooting Question

using a <div>

Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox asked on
HTML
10 Comments1 Solution1717 ViewsLast Modified:
Hi,

I'm using some ASP.NET controls to make a simple web interface. I'm trying to stick a grid control inside a <div> but it seems to keep spilling outside of the <div> borders. Why is it doing this? Below is the exact code:

    <div id = "DivListSettings" style="left:20px; top:300px; height:200px; width:200px; border:1px solid black; position:absolute">    
        <radg:radgrid id="RadGrid1" runat="server" autogeneratecolumns="False" enableajax="True"
            gridlines="None" onneeddatasource="RadGrid1_NeedDataSource" BorderStyle="Solid" BorderWidth="2px" Height="60px" Width="263px">
            <ClientSettings>
                <Selecting AllowRowSelect="True"></Selecting>
                <Scrolling UseStaticHeaders="True" AllowScroll="True"></Scrolling>
            </ClientSettings>
            <MasterTableView>
                <Columns>
                    <radG:GridBoundColumn AllowSorting="False" UniqueName="column" HeaderText="Settings"></radG:GridBoundColumn>
                </Columns>
                <ExpandCollapseColumn Visible="False">
                    <HeaderStyle Width="19px"></HeaderStyle>
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
            </MasterTableView>
        </radg:radgrid>
    </div>

I thought the radg:radgrid  control would be inside the top <div> It seems to follow the origin set by the div, but doesn't respect its boundaries.

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros