Re: NullReferenceException in datagrid while scrolling

From: Miki Watts (miki333_at_netvision.net.il)
Date: 02/07/04


Date: Sat, 7 Feb 2004 12:25:41 +0200


"Miki Watts" <miki333@netvision.net.il> wrote in message
news:TcydnaNLjclGnbnd4p2dnA@giganews.com...
> I have a problem with DataGrid, while filling a DataSet that is bound to
it,
> which throws a NullReferenceException, and the stack trace points to some
> tooltip related functions in the datagrid.
> This happens only while scrolling with the scroll bar.
> I've seen a thread from 2002 where someone had the same exact problem as
me,
> but there was no solution posted to it.
>
> Is this a known bug? any way to fix it?
>
>

I found a work around for this bug, apparently it has something to do with
filling the dataset with large amounts of data, while the datagrid is bound
to it. So i disconnected the grid from the dataset before filling the
dataset, then rebound and refreshed the grid afterwards.



Relevant Pages

  • Re: Data Relation question
    ... Seems to me that either you're filling the event data before you're filling ... The Sql statement you have ... > When I run the Query, ... > I would like to show all the contacts in the first datagrid. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ASP.NET DataGrid EditItemTemplate DropDownList Data Fill In VB
    ... Paul wrote: ... > stating that the object is not referenced to anything. ... > Is filling a dropdownlist in templated item in a datagrid with data ...
    (comp.programming)
  • Re: DataGrid to Excel
    ... Unfortunately the button click handler is not called after filling my datagrid with that huge load of data. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: get datagrid.datasource gives error
    ... > //I am filling the datagrid and it works fine when page is displayed ... > when I try to get the datasource from a datagrid it gives ... > "Object reference not set to an instance of an object." ...
    (microsoft.public.dotnet.framework.aspnet)
  • Urgent Datagrid/DataSet/BindingContext problem - (something new!)
    ... I have been trying to fix this bug for months. ... There's this DataGrid, see? ... It only has this problem when the row being added is the first Detail record ... and have a similar arrangement: Master record fields displayed ...
    (microsoft.public.dotnet.framework.windowsforms.controls)