Derma Help

Hello i have a derma list veiw when i click on a value it wont do anything my code is as followed.



local lView = vgui.Create("DListView");
        lView:SetParent(panel);
        lView:SetPos(12, 50)
        lView:SetSize(325, 420)
        lView:SetMultiSelect(false)
        lView:AddColumn("Model")
        for k, v in ipairs(PropSeek.AllowedModels) do
            lView:AddLine(v)
        end
        lView.OnClickLine = function(parent, selected, isselected)
            local model = selected:GetValue();
            if(table.HasValue(PropSeek.AllowedModels, model)) then
                LocalPlayer():SetModel(model)
                end

        end


Any errors?

Nothing it jsut dosent work

And will you expand on “not work” for us?

Yea sure, Well i click on the list for example
List-----
A
B
C

If i click on any values it dose nothing it seems as if it dosent register the click there are no errors nothing i tried adding Print(“Test”) into the click function that dosent even display