The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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.
JLJose Luis MeloFebruary 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...