In this tutorial you’ll learn how to highlight record in the List view.

1. Before start the tutorial, first of all you’ll have to learn how to connect list view with mysql.

https://www.devzone.co.in/connect-mysql-list-view-vb-net
2. Click on the above link to learn how to connect list view with mysql.

3. After that, when you create a function for list view connection with mysql, when you adding the sub items, after sub items copy this code which is given below to display red line.

4. In the if else condition, you’ll see I have given subitems(3) = 0, which means when sub item no 3 will equal 0 then whole line will became red line. You can use another color also.

code 1

code 2

5. Output –

gui 1

gui 2