Re: Updating an object value in a grid

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

You need to implement INotifyPropertyChanged interface on your object. This
will notify all the databound controls to this object to change accordingly.

Hope this helps

Fitim Skenderi



"Fredo" <fredo@xxxxxxxxxxx> wrote in message
news:cZCdnRNhI8vEH67YnZ2dnUVZ_oudnZ2d@xxxxxxxxxxxxxxx
I have a DataTable and in one of the columns, I'm storing an object. When
certain properties of that object change, I want the DataTable to trigger
an update in the grid (via the CurrencyManager).

Is that possible without setting the Row/Col to a new instance of the
object?

Here's the thing: I want to keep the object independent of the DataTable
itself. I'd also like to, for example, be able to use it in a collection
bound to a grid. I'd also like this to all happen from within the object
itself, if possible. This is an object we're actually creating for other
developers to use and I basically want to give it the ability to trigger a
CurrencyManager update when certain properties are changed.





.



Relevant Pages

  • Updating an object value in a grid
    ... certain properties of that object change, I want the DataTable to trigger an ... update in the grid. ... CurrencyManager update when certain properties are changed. ...
    (microsoft.public.dotnet.languages.csharp)
  • IF statements
    ... I have a grid, and using an IF statement, I want to trigger a series ... of commands if the variable 'result' is within the grid cell ...
    (comp.lang.fortran)
  • How to refresh grid after INIT trigger?
    ... I have form which displays information in grid. ... I wrote a small program and link to INIT so when this form is loaded, ... I want INIT to trigger the program which changes the quantity and as soon ... I also tried REQUERYin REFRESH but nothing happening. ...
    (microsoft.public.fox.vfp.forms)
  • Row cannot be located for updating...
    ... (Delphi 7, Sql server 2000) ... When I changed a record on this grid I get an error: ... TABLE1 has a trigger but this trigger *doesn't update/insert Table1* and ...
    (borland.public.delphi.database.ado)