Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid alignment

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
I have a datagrid with dynamic rows that change. I have a table that needs to go underneath, but they get overlayed with each other. I tried removing positioning, but it moves the table to the top. How can I find the left, and bottom of the datagrid? I don't see how I can get this from the style
 
You don't need to work out any positioning if you simple want to position elements underneath each other as they willdo this automatically e.g.
Code:
<div>
	<asp:datagrid runat="server" id="DataGrid1"></asp:datagrid> 
</div>

<div>
	<asp:Table runat="server" id="Table1" ></asp:Table> 
</div>
In the above example, the table will always render underneath the datagrid regardless of th number of rows in the datagrid.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks everyone. I finally removed all the style code that VS puts in automatically, and arranged the page like I wanted it using HTML. That worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top