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

GridControl to display max columns possible

Thread ID:

Created:

Updated:

Platform:

Replies:

8219 Oct 28,2003 01:28 PM UTC Oct 28,2003 02:06 PM UTC WinForms 1
loading
Tags: GridControl
Desis Machino
Asked On October 28, 2003 01:28 PM UTC

I am attempting to implement the following functionality using the grid control: Lets say I have a column of letters of the alphabet (in alphabetical order) in a grid control on a form. What I would like, is to show as many columns as possible on the grid control without a vertical scrollbar appearing. For instance, if the user sizes the window as narrow as possible, then I would have 1 column of 26 rows. But if the window was made a little wider, then the grid control would display 2 columns of 13 rows (with the first row being A,B, the second C,D etc.) Is it possible to set the grid control so that it displays the maximum number of columns in a view or do I need to do this programmatically? Thanks, Vikram

Administrator [Syncfusion]
Replied On October 28, 2003 02:06 PM UTC

There are no property settings that would allow you to do this. You would have to code things. I think it is doable, and would probably try to use a virtual grid to implement things. When the grid's size changes (or in the grid's Layout event), you could compute and set the number of columns. Then in QueryCellInfo, you could provide the values. It would probably take a little tweaking to get things working smoothly...

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

;