Author: kchokkal | Posted on: 10/30/2009 8:55:30 AM | Views : 1240

Hi,
I am using studio 2005

I have a list box. Where I will be adding the items dynamically. I want Items in the listbox not to selected,
but can be viewed by scrolling. code i used
<asp:ListBox ID="lbxCostCenterCode"   CssClass="lstBox" Width="150" Rows="5" runat="Server" />


while(i>100)
{

            lbxCostCenterCode.Items.Add(new ListItem(i.ToString(),i.ToString()));              
}
 the code above will allow user to select the listbox itmes selectable, If i add the prperty enabled="false" which hides the scroll bar too.
So what can i do to met my requirements.











...

Go to the complete details ...