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.
Unfortunately, activation email could not send to your email. Please try again.

QueryColWidth problem with HScrollBar

Thread ID:

Created:

Updated:

Platform:

Replies:

34129 Sep 2,2005 08:19 AM Sep 2,2005 03:35 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 2, 2005 08:19 AM

Hi together, I have got a problem with a custom QueryColWidth event in my gridgroupingcontrol. I always get a horizontal scrollbar - but there is no need for it. What I am doing wrong?? PleaseDelete2_2300.zip

Administrator [Syncfusion]
Replied On September 2, 2005 11:42 AM

Here is you sample back. http://www.syncfusion.com/Support/user/uploads/PleaseDelete2_987a1d29.zip About the scrollbar, the simplest thing to do is to just hide it, and in your case I do not think it will cause a problem. One other comment is the the ClientSize is already adjusted for the scrollbars, so you do not have to do any adjustment in QueryColWidth.

Administrator [Syncfusion]
Replied On September 2, 2005 01:39 PM

Hi Clay, thanks, but the problem is, if the form is fixed (not resizeable) and a column cell of the first column (e.g. Name) has a cell content which is much wider than actual (e.g. a User enters a long text) - I can''t scroll to the second column. So I need the horizontal scrollbar when the content of a cell get''s wider. How can I solve the problem then ???? Any help would be great Kind regards, Franz >Here is you sample back. > >http://www.syncfusion.com/Support/user/uploads/PleaseDelete2_987a1d29.zip > >About the scrollbar, the simplest thing to do is to just hide it, and in your case I do not think it will cause a problem. > >One other comment is the the ClientSize is already adjusted for the scrollbars, so you do not have to do any adjustment in QueryColWidth.

Administrator [Syncfusion]
Replied On September 2, 2005 03:35 PM

>>a cell content which is much wider than actual If this is the situation, you will not be able to use QueryColWidth to make the grid exactly fill the parent. You could conditionally use querycolwidth when it is possible. If not possible, then you would have to show the scrollbar and assign reasoanle column widths.

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.

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.

;