Jump to content

Sorting in Gridlist


Markeloff

Recommended Posts

Posted

Hello, I wonder how to sort a gridlist using an edit box?

I have a gridlist with two columns, item and amount.

I want to show for example item X only in the gridlist when I write X in the edit box it must clear the grid and add back rows with X text as item.

Posted

I didn't understand..

Gridlist looks like

Item Amount

M4 150

Pistol 190

M4 180

Sniper 50

Pistol 150

Sniper 250

For example, I write just 'M' in the edit box and the gridlist should output only Items and its amounts starting with M (M4 for example)

Posted

or: If empty then ( change it so tat is adds items again, loop through the table then add them all again. Remember to clear it. ). Get gridlist's row, and loop ( for i=0, gridlistrow do ) then get the text of column if it's there then keep it else remove it. And for edit change, onClientGUIChanged

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...