Garry's Mod Wiki

DListView:GetSelectedLine

  number, Panel DListView:GetSelectedLine()

Description

Gets the currently selected DListView_Line index.

If DListView:SetMultiSelect is set to true, only the first line of all selected lines will be returned. Use DListView:GetSelected instead to get all of the selected lines.

Returns

1 number
The index of the currently selected line.
2 Panel
The currently selected DListView_Line.