Groups | Blog | Home
all groups > dotnet windows forms controls > june 2008 >

dotnet windows forms controls : How to refresh a computed column in DataGridView before leaving the row ?



Patrice
6/19/2008 12:30:03 PM
Hi all,

I'm using a DataTable with computed columns as the source for my
DataGridView.

When I change the value used by the computed column, the computed column is
updated only when I leave the row. I would like to update the computed
column when I leave cell (moving to another cell on the same row).

How could I do that ? TIA

--
Patrice

Patrice
6/19/2008 3:28:43 PM
Forcing the row update by calling EndEdit on the underlyind DataBoundItem
from the CellEndEdit event seems to do the trick...

Thanks Patrice ;-)

--
Patrice


"Patrice" <http://www.chez.com/scribe/> a écrit dans le message de groupe de
discussion : 10052CC4-5C5E-409C-9E1B-99D2A629421B@microsoft.com...
[quoted text, click to view]
AddThis Social Bookmark Button