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

Error GridListControl

Thread ID:

Created:

Updated:

Platform:

Replies:

11232 Feb 27,2004 05:58 PM UTC Feb 28,2004 02:40 PM UTC WinForms 2
loading
Tags: GridControl
Jose Luis Melo
Asked On February 27, 2004 05:58 PM UTC

Hi, when I populate a GridListControl with a dataset, sometimes the grids'' horizontal ScrollBar becomes very smal. And when I drag it, this error happens: Additional information: ''0'' is not a valid value for ''value''. ''value'' should be between ''minimum'' and ''maximum''. Unhandled Exception: System.ArgumentException: ''0'' is not a valid value for ''value''. ''value'' should be between ''minimum'' and ''maximum''. at System.Windows.Forms.ScrollBar.set_Value(Int32 value) at Syncfusion.Windows.Forms.ReflectScrollBar.set_Value(Int32 value) at Syncfusion.Windows.Forms.ScrollBarWrapper.set_Value(Int32 value) at Syncfusion.Windows.Forms.ScrollControl.OnHScroll(Object sender, ScrollEventArgs se) There are time when I open this same grid and the scrollbar is not as small as this one before and it work with no errors. It looks like it happens because the grid may ''think'' it has more columns than the ones i''m inserting. Can you help me on this error ? or where to catch it ??? Thanks a lot. Luis Melo

Administrator [Syncfusion]
Replied On February 27, 2004 06:49 PM UTC

What version are you using? In the latest 2.0 code base there are checks taht avoid this error in a lot of situations. Are you dynamically changing the content of the datasource? If so, you might try calling gridListCOntrol.Grid.ResetVolatileData after making these changes in the datasource (and/or after setting the gridListControl.DataSource property). Can you reproduce the problem in one of our samples, or can you post a sample project showing the problem so we work with the problem here? Or, if you use a debug build of our libraries, you could post the callstack. Maybe that would give some information.

Jose Luis Melo
Replied On February 28, 2004 02:40 PM UTC

>What version are you using? In the latest 2.0 code base there are checks taht avoid this error in a lot of situations. I''m using 1.6.1.8. Is the 2.0 version already release or still beta ? > >Are you dynamically changing the content of the datasource? If so, you might try calling gridListCOntrol.Grid.ResetVolatileData after making these changes in the datasource (and/or after setting the gridListControl.DataSource property). > Yes I''m changing the content dynamically. ResetVolatileData didn''t solve. >Can you reproduce the problem in one of our samples, or can you post a sample project showing the problem so we work with the problem here? Or, if you use a debug build of our libraries, you could post the callstack. Maybe that would give some information. > I tryied to make a little sample(because the project is very big), but the the error didn''t happen. > After making some experiences, I realised that I can solve this problem by setting gridListControl.Grid.HScroll to false. The HScroll appears in its usual size.... no error happens. I realized too, that the error only happen when I hide the form, and then oppen it again... in fact, changing the grid''s content doesn''t make the error happen. Thanks again, my 2 cents...

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

;