Dovberman
asked on
Need to add a vertical scroll bar to a datalist
Can this be done? I could not find a property to use.
A reference would be helpful.
Thanks,
A reference would be helpful.
Thanks,
you can do it indirectly. Put the datalist control inside a div tag with overflow capability. Something like:
<div style="overflow-x: hidden; overflow: scroll; width: 100%; height:500px">
<div style="overflow-x: hidden; overflow: scroll; width: 100%; height:500px">
ASKER
This places a scroll bar within each row and column. I need a single scroll bar for the entire list similar to the listview.
Is this possible?
Thanks,
Is this possible?
Thanks,
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks,
I have a tutoring appointment at a local high school. I will try it this afternoon.
I found out that my first student was held back 2 grades after "experts" determined that she could not read. Within 15 minutes, I realized that she was highly intelligent but had vision issues.
The Lion's Club is now involved.
I have a tutoring appointment at a local high school. I will try it this afternoon.
I found out that my first student was held back 2 grades after "experts" determined that she could not read. Within 15 minutes, I realized that she was highly intelligent but had vision issues.
The Lion's Club is now involved.
ASKER
Yes, Defining the datalist inside the css statement works.
<div style="overflow: scroll; width: 2in; height:500px">
<asp:DataList ID="dlstEvalWatch" runat="server" DataKeyField="SymbolID"
Thanks,
<div style="overflow: scroll; width: 2in; height:500px">
<asp:DataList ID="dlstEvalWatch" runat="server" DataKeyField="SymbolID"
Thanks,
<asp:DataList ID="yourDataList" runat="server">
<ItemTemplate>
<div style="width:400px;height:
// Your Content
</div>
</ItemTemplate>
</asp:DataList>
KMT