Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

Re: How to Highlight a row in ListView

$
0
0

Hi,

 

Apologize but I have just seen that you are using a ListView and not a ListBox.

For highlighting rows under a condition you can do that :

-Select the  property for the listView

- Use this code

int li
string ls_value

for li = 1 to lv_1.totalitems( )

      lv_1.getitem (li, 4 , ls_value)
      if ls_value = "1293" Then   // Put Here your Condition

           listviewitem lvi_1
           lv_1.GetItem (li, lvi_1)

           lvi_1.selected = true

           lv_1.SetItem(li , lvi_1)
     end if
next
lv_1.setfocus()

 

Hope this helps.

Abdallah.

 

Capture.PNG


Viewing all articles
Browse latest Browse all 9656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>