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

Hidden Columns cause BUG

Thread ID:

Created:

Updated:

Platform:

Replies:

4997 Jun 12,2003 08:54 PM UTC Jun 12,2003 10:08 PM UTC WinForms 1
loading
Tags: GridControl
Bryan Barton
Asked On June 12, 2003 08:54 PM UTC

Hello, I am using a dataBound grid and in the initializer method, I am specifying a large number of columns to hide. What I have is about 30 columns, but when the form initializes I want the user to only see 7 columns. Here is the kicker, if the width of all of the columns does not cover the entire space that the grid is supposed to occupy, the entire grid dissapears (including columnHeaders, RowHeaders, scrollbars, etc.) as if the control didn't exist at all. In my example, I have set the grid to Dock.Fill in a panel. I got the error to occur where upon initilization I see a flash of the grid control's scrollbars and then it dissapears. I then manually commented out individual lines of code that were meant to cause columns to be hidden. I kept allowing more an more columns to be unhidden and eventually figured out that the grid will initialize and stay visible as long as all the columns cover the width of the panel. So if I only had 5 columns, and there was blank space off to the right, then during initilization the grid dissappears. I can hide and show columns all day long during runtime and the same bug does not occur. If someone can help me with this problem it would be greatly appreciated. Thanks for your time! ~Bryan

Administrator [Syncfusion]
Replied On June 12, 2003 10:08 PM UTC

Attached is a sample that does not seem to have this problem. How does it differ from what you are doing?

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;