#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
$Gui = GUICreate("ListView - Set selected column", 300, 200)
$hListView = GUICtrlCreateListView("Column1|Column2", 2, 2, 296, 196, BitOR($LVS_EDITLABELS, $LVS_REPORT))
_GUICtrlListView_SetExtendedListViewStyle($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
GUICtrlCreateListViewItem("Item1|SubItem1", $hListView)
GUISetState()
GUICtrlSendMsg($hListView, $LVM_SETSELECTEDCOLUMN, 1, 0)
_WinAPI_RedrawWindow(GUICtrlGetHandle($hListView))
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd