Jump to content

[HELP] dxGridList


Recommended Posts

Hello everyone, I'm having a problem with the resource to t3wz of dxgridlist this https://github.com/t3wz/dxGridlists/wiki

And good I have a problem it does not have a setItemText and I can not think of a way or way to do it has a date argument over I did not understand very well could anyone help me?

I am doing a missions panel and need to change the status of the mission from "In Progress" to "completed"

Link to comment
function dxGrid:SetItemText ( itemID, column, new_text )

    if __checkParams ( "SetItemText", "nnn", itemID, column, new_text ) then
        if self.i[column] and self.i[column][itemID] then
            self.i[column][itemID].text = new_text
            return self.i[column][itemID].text == new_text
        end
    end
    return false
end

 

Link to comment
1 hour ago, ZoRRoM said:

function dxGrid:SetItemText ( itemID, column, new_text )

    if __checkParams ( "SetItemText", "nnn", itemID, column, new_text ) then
        if self.i[column] and self.i[column][itemID] then
            self.i[column][itemID].text = new_text
            return self.i[column][itemID].text == new_text
        end
    end
    return false
end

 

Thank you it worked perfectly I did what you said below "nns" rs :D. I read and understood the code and tb I created a function for SetItemColor. 

56 minutes ago, ZoRRoM said:

Change nnn to nns

Thank you for your help !

Link to comment
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...