Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Greetings once again:

 

I have a sub that calculates a sum of a column.

 

What I'd like is to have that sub run each time the user makes a change in the datagrid.

 

I've tried using the following events..

 

TextChanged

KeyPress

KeyUp

Move

Navigate

Validated

 

None have seemed to fire when I wanted them to. The closest is the Validated event, but it seems rather delayed. If you enter a value into a cell in the datagrid, the compute will not update the text box untill you move to a different cell into the datagrid twice.

 

Rather confusing. Anyone know of a way to resolve this? Or have a suggestion of a different way of completing this task?

~~ The One Who Was ~~
Posted (edited)

Robby:

 

At first I didn't find the event you mentioned. However, I did run across the CurrentCellChanged event which acts like you mentioned.

 

I thank you very much for the suggestion, it put me in the right track to find the correct event.

 

:eek: I can't believe I didn't find this in the first place. :eek:

Edited by The One Who Was
~~ The One Who Was ~~

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...