Dynamic datalist height
am 17.04.2008 23:50:49 von PeterI 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" >
cellpadding="1" OnItemDataBound="dlTemplateList_ItemDataBound">
onclick="ImageButton1_Click"/>
NavigateUrl='~/DesktopModules/Report/Viewer.aspx?ReportID=<%#
DataBinder.Eval(Container.DataItem, "ItemID") %>'
Target="_top"
/>