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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple columns in GridListControl

Thread ID:





35769 Oct 9,2005 11:48 PM UTC Oct 10,2005 01:01 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On October 9, 2005 11:48 PM UTC

I''m writing a little app and trying to use the GridListControl. Basically, I just need a simple multi-column listbox and thought this would be simple to do. I must be missing something basic. I have a class with 6 public properties, 3 strings, 2 ints, and an enum. If I bind to the GridDataBoundGrid, I get all the columns just the way I want. I suppose I could just use the ListSelectionMode stuff in that, but I''d like to know what I''m doing wrong with the GridListControl. First I tried binding to an array of these objects (which again, worked with GDBG). But when I try it with the GridListControl, I only get the first column/object property (Title, in this case). I tried setting GridListControl.Grid.ColCount = 6, but that had no effect. I tried creating a class derived from ArrayList that implemented ITypedList. In the GetItemProperties() (which I verified is getting called), the TypeDescriptor.GetProperties(typeof(MyObject)) returns the PropertyDescriptors for all 6 properties. Still no success. Surely I''m just missing something simple. I couldn''t find a sample that displays more than one column. Did I miss something? Thanks. Pete

Administrator [Syncfusion]
Replied On October 10, 2005 07:52 AM UTC

Make sure GridListControl.MultiColumn is set true.

Administrator [Syncfusion]
Replied On October 10, 2005 01:01 PM UTC

Don''t know how I missed that after going through the docs on it. Thanks. Pete


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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