Groups | Blog | Home
all groups > dotnet general > november 2004 >

dotnet general : DataGrid Cells: Detecting Value changes?



Alex
11/17/2004 6:00:42 PM
Hi all...

I have a DataGrid bound to a DataTable. My DataTable gets updated
programmatically as it contains the status of a number of worker threads.

Each "main" worker thread launches a number "child" threads, so displaying
the status of these in a DataGrid is ideal - one row for each "main" thread,
one column for each "child" thread.

However, some of these threads take a while to update their status, so I'd
like a way to notify the user of this change by flashing the DataGrid cell
background colour when this happens. Is there a way I can do that?

i.e. as the DataTable gets refreshed (and hence the DataGrid, as it's bound
to that), I want the cells that have been updated with new values (and only
those) to change background colour for a second or two, then go back to
white again.

Thanks!
Alex

Uri Dor
11/18/2004 3:05:23 PM
how about the DataTable.RowChanging/RowChanged events?

[quoted text, click to view]
AddThis Social Bookmark Button