ASP.NET Rows Özelliği
Tanım ve Kullanım
Rows özelliği, ListBox içinde görünen satır sayısını (sürgülü olmayan) almak veya ayarlamak için kullanılır.
Sözdizimi
<asp:ListBox Rows="num" runat="server"> some content </asp:ListBox>
Özellik | Açıklama |
---|---|
num | ListBox içinde görünen satır sayısını (sürgülü olmayan) belirler. |
Örnek
Aşağıdaki örnek, ListBox denetiminin Rows özelliğini ayarlar:
<form runat="server"> <asp:ListBox id="lb1" Rows="5" runat="server"> <asp:ListItem Value="Item1" /> <asp:ListItem Value="Item2" /> <asp:ListItem Value="Item3" /> <asp:ListItem Value="Item4" /> <asp:ListItem Value="Item5" /> </asp:ListBox> </form>
Örnek
- ListBox Denetiminin Rows Özelliğini Ayarlama