By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

May 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
One of the ways is you can use the CellLeave event:

http://msdn2.microsoft.com/en-us/lib...ve(d=ide).aspx

chanmm

"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
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

May 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.