We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridList Control and Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

37225 Nov 17,2005 04:42 PM UTC Nov 17,2005 11:00 PM UTC WinForms 1
loading
Tags: EditControl
Mike M
Asked On November 17, 2005 04:42 PM UTC

I am currently bining a strongly-typed collection of objects to a GridList control (v3.3). The problem is all of the properties are showing up as columns and I want to programatically decide which properties to display. Does anyone have some example code? Is this possible without hiding columns? Thanks.

Administrator [Syncfusion]
Replied On November 17, 2005 11:00 PM UTC

The simplest way is to hide the columns: gridListControl1.Grid.Cols.Hidden[2] = true; //hide column 2.... If you want a solution that yo9u can implement on your collections, you can have the IList object implement ITypedList. (This will also alos you to control the display order of the properties.) Here is a forum thread that has sample code. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9194 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 or remove any properties you do not want to use.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;