StrataFrame Forum

Set Focus to a List View

http://forum.strataframe.net/Topic26696.aspx

By Terry Bottorff - 3/30/2010

lvsample.focus does not leave the cursor in the first column.



I requery the list view and would like to put the cursor in the first column on the first record but lvsample.focus does not do it. Is there a way to do it? TIA.
By Edhy Rijo - 3/30/2010

Hi Terry,



Try something like this:





Me.lstMainData.Items(0).Selected = True

Me.lstMainData.Focus()

By Terry Bottorff - 3/31/2010

Perfect. Thank you so much.......