DataGridView - refreshing calculated columns when move from column to column.

DataGridView - refreshing calculated columns when move from column to column.

Post by Greg » Thu, 01 Jun 2006 00:15:28


I'm using a DataGridView object bound to an xml datasource. I have
added 2 unbound columns which are populated based on the calculations
of data from other columns. When the data in the other columns is
altered, the calculated columns are only updated when I move to another
row. If I move the focus to another cell within the same row, they are
not refreshed.

What is the best way to force this refresh?

Greg
 
 
 

DataGridView - refreshing calculated columns when move from column to column.

Post by chanm » Thu, 01 Jun 2006 03:44:01

One of the ways is you can use the CellLeave event:

http://www.yqcomputer.com/ (d=ide).aspx

chanmm