Dynamic datalist height

Dynamic datalist height

am 17.04.2008 23:50:49 von Peter

I have a datalist and I want the datalist to grow from no recors to fill the
screen, but not go beyond the screen height. How do I do that?
I've implemented the scroll bars but that's for the fixed height. I want
the datalist to grow and shrink and never go beyond the current screen
height, if it goes beyond the screen height I want to implement the scroll
bar.


Thank You



Peter


Here's my code, I've tried adding a table, but still can not get it to work.


border="0" cellpadding="0" cellspacing="0" >



datakeyfield="ItemID" runat="server"
cellpadding="1" OnItemDataBound="dlTemplateList_ItemDataBound">








ImageUrl="~/images/icon_sitelog_16px.gif"
onclick="ImageButton1_Click"/>


Text='<%# DataBinder.Eval(Container.DataItem, "ObjectName") %>'
NavigateUrl='~/DesktopModules/Report/Viewer.aspx?ReportID=<%#
DataBinder.Eval(Container.DataItem, "ItemID") %>'
Target="_top"
/>




Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>'/>