Hi Hugh,
Welcome to MSDN newsgroup.
As for the ROW property, do you mean the "Rows" property of the ASP.NET
ListBox webserver control? This property is used to control how many rows
will be visible in the ListBox (when there're many items) and the Rows
propety is actually render as "size" attribute in clientside html like
below:
ASPX: <asp:ListBox id="ListBox1" Rows="3" runat="server">
||
V
HTML: <select name="ListBox1" size="3" id="ListBox1">
Also, to make sure the "Rows" property work as expected, we need to prevent
the ListBox being applied other size css attributes like:
<asp:listbox id="ListBox1" runat="server" Rows="3" Width="72px"
Height="72px">
in such condition, the Rows setting will be override by the "Height"
attribute which is rendered as:
<select name="ListBox1" size="3" id="ListBox1"
style="height:7 2px;width:72px; ">
If you have anything else unclear, please feel free to post here. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Hugh O" <Hu****@newsgro up.nospam>
| Subject: Contolling #of rows in a Web Listbox Control
| Date: Tue, 13 Sep 2005 16:32:00 -0400
| Lines: 20
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#1************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: pcp01784214pcs. audubn01.nj.com cast.net 68.46.176.167
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:105552
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Hi,
| There is a ROW property on the Web Listbox control within VB.Net. The
| description states it is "The number of visible rows to display".
|
| I have tried setting this property in many different ways. It does not
| appear to do much of anything. I was trying to use it to control the
| actual size in rows of the list box on the Web page. But the size of the
| Web listbox seems to be fixed and controlled by the size of the control
set
| in the designer. If there are more than the rows possible within that
| control size, a scroll bar, permits an unlimited number of rows.
|
| The setting of the Listbox.Row property does not appear to make any
| differences good or bad. Can you control the size of the listbox using
this
| property? If so, what is a valid format for the setting? Just setting a
| number does not appear to do anything.
|
| thanks,
| hugh
|
|
|