try abc

try abc

  • 1.4k
  • 306
  • 486.5k

Listview.TopItem is Very slow on First Execution

May 23 2009 3:54 AM
Hello.. i am Using listview to Fill data from database. and selecting Item in listview through Coding. Now then want to highlight selected the selected One.. for that I am using following code.. lstv.Items[ItemName].Selected = true; lstv.Items[ItemName].Focused = true; lstv.TopItem = lstv.Items[ItemName]; but the following statement takes too much time to execute for the First time Only. next time its is Normally.. lstv.TopItem = lstv.Items[ItemName]; I dont know what s Going wrong ??if anybody can help..