I got a GridList for wich I set the datasource to an arraylist. My question is how can I set the order in wich the columns containing the properties of my custom class are displayed in the gridlist?
public class whatEver
private strname as string = "Name"
private strlastname as string = "Lastname"
public property name as string
public property lastname as string
public class withTheGrid
public sub aSub()
dim a as new arraylist
grdList.dataSource = a
Now I got the info right, but let''s say it prints the name then the lastname, how do I get it to do the opposite.
ADAdministrator Syncfusion Team March 22, 2005 01:40 PM
You can control the display order of the properties in your ArrayList objects by having your ArrayList implement ITypedList. Here is a forum thread that has sample code.
In the GetItemsProperties, get the default property order using the techinque shown in this forum thread. But before returning the collection, reorder the colection to the order you prefer.