[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Frederic Goulet

2/20/2004 1:24:00 PM

Is there any known workaround to make the DataList display less than 5 items
at design-time?

Thanks

Frederic Goulet


2 Answers

Ken Cox [MS MVP]

2/21/2004 4:03:00 AM

0

Salut Frederic,

Au lieu de « datalist », voulais-tu dire « listbox »? Si oui, t?aurais
juste à changer la valeur de la property Rows. Essaie donc, 3.

Rather than ?datalist?, did you meant ?listbox?? If yes, you just have to
change the Rows property to the number of lines. You might try 3.

Ken
Microsoft MVP [ASP.NET]
Toronto



"Frederic Goulet" <gouletf@dfo-mpo.gc.ca> wrote in message
news:OTMsBT79DHA.2480@TK2MSFTNGP12.phx.gbl...
> Is there any known workaround to make the DataList display less than 5
> items
> at design-time?
>
> Thanks
>
> Frederic Goulet
>
>

Frederic Goulet

2/22/2004 12:20:00 AM

0

Hi Ken,
No, I really meant the DataList control in the WebControls namespace. Every
time you drop one of those on a web form, the designer display a 5 items
sampling (or rows) and it could be very annoying at design-time. A "Rows"
property would come very handy but this control unlike the ListBox control
work only when bound to a DataSource.

Thanks anyway

Frederic

P.S.: Your french is excellent!

"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> a écrit dans le
message de news:OntRq%23C%23DHA.2132@TK2MSFTNGP10.phx.gbl...
> Salut Frederic,
>
> Au lieu de « datalist », voulais-tu dire « listbox »? Si oui, t?aurais
> juste à changer la valeur de la property Rows. Essaie donc, 3.
>
> Rather than ?datalist?, did you meant ?listbox?? If yes, you just have to
> change the Rows property to the number of lines. You might try 3.
>
> Ken
> Microsoft MVP [ASP.NET]
> Toronto
>
>
>
> "Frederic Goulet" <gouletf@dfo-mpo.gc.ca> wrote in message
> news:OTMsBT79DHA.2480@TK2MSFTNGP12.phx.gbl...
> > Is there any known workaround to make the DataList display less than 5
> > items
> > at design-time?
> >
> > Thanks
> >
> > Frederic Goulet
> >
> >
>