Datagrid Scrollbar Disappearing
Posted on 2006-06-06
Problem: The scrollbar of my datagrid disappears intermittently; I get no error messages and have no problem using the datagrid except I would have to use Down Arrow to go to the row that is not visible in the datagrid area. I also have a situation where I get a scrollbar on the datagrid even when the rows are not enough to fill the datagrid. In the later case, if I click on the scroll bar, I get an error "'-13'is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum'"
-- I have 1 datatable that gets the SQL results from the database every 30 seconds (Timer Interval)
-- On the form, I have 3 groups of radio buttons and 1 datagrid. Based on the radio buttons selected, the datatable filters to the appropriate rows needed for the user on the datagrid.
-- Right before the data table filter changes or refreshes, I set the datagrid to to nothing and refresh. However, as soon as the filter changes and refreshing has taken effect, I set the datagrid to the datasource (The DataTable).
I have no problem with the filtering or refreshing part so far, but I have problem when the scrollbar dissapearing occassionally or appearing when not necessary (usually occurs when filter view is changed to lesser rows).
Please help me asap, I have to fix this problem within two days. If you need more info, please let me know.