I do similar computational updates of datagrid and it works fine, I
never explicitly update the grid, just the data behind it and I rely
on databinding to invalidate the grid.  I tend to make sure that the
fields I bind to are in plain view of the binding, so no getters or
properties of properties.

If I were the OP I wouldn't sit very comfortably until I had figured
out why I was getting the null reference errors.  One possibility is
that there is something in there which is causing the update to fail
silently.  Once I had established that the cause was not my code, then
I might start to point a finger at the datagrid.  Until then I would
just concentrate on the first error.

Which object is causing the null reference error?

--- In [email protected], "Ralf Bokelberg"
<[EMAIL PROTECTED]> wrote:
>
> It's hard to say what the problem really is, without seeing the code.
> Are you able to isolate the problematic code into a mini project and
> provide it as a download?
> 
> Cheers
> Ralf.
> 
> On Tue, Feb 12, 2008 at 8:45 AM, andrii_olefirenko <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> > You could try this
> >
> >  dataGrid.dataProvider.refresh(); //where dataGrid is object of
> >  DataGrid class
> >
> >  Regards,
> >  Andrii
> >
> >
> >  --- In [email protected], "mr_j_harris" <mr_j_harris@>
wrote:
> >  >
> >  >
> >  >
> >  > I need to force a redraw of a datagrid.
> >  >
> >  > Adobe's or whoever's Cleverness is not working for me.
> >  >
> >  > I just want to have my computer redraw the DataGrid from 0,0 to the
> >  > bottom right corner. My computer has nothing better to do than that
> >  > for me or my users. Because elsewise it is show stale data.. See, I
> >  > recomputer some values in thoe objects in the ArrayCollection
> >  > dataProvider of the dataGrid.
> >  >
> >  >
> >  > Please tell me the one, two or three lines of ActionScript that
will
> >  > do this.
> >  >
> >  > Oh yeah, without causing that TypeError #1009 thing ever.
> >  >
> >  >
> >  > Alternatively, how can I force a redraw of a particular cell? I
know
> >  > the cell coordinates....
> >  >
> >  >
> >  > -- John Harris
> >  >
> >
> >  
> 
> 
> 
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
>


Reply via email to