### Disable Selection

Example disabling selection of ListView items by using an external CSS file
B4J
`Sub Process_Globals
Private ListView1 As ListView
...
End Sub`
`Sub AppStart (Form1 As Form, Args() As String)
...
'Ensure to add the extrenal CSS file, stored in files folder
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "main.css"))
'Add some items to the ListView
For i = 1 To 100
ListView1 .Items.Add($"Item #${i}"$)
Next
'Scroll to the first item in the ListView
ListView1.ScrollTo(0)
...
End Sub`
External CSS
File main.css placed in the project files folder and added to the B4J IDE Files Manager.
.list-cell {
-fx-background-color: -fx-control-inner-background;
-fx-text-fill: -fx-text-inner-color;
}
.list-cell:odd {
-fx-background-color: derive(-fx-control-inner-background,-5%);
}

Changed: , Category: ListView, File: T6C216M1589.htm, ID: 1589