Hi there,
I have a question regarding datagridview in C#. I need to validate the cell as soon as the value is selected from the datagridview.
I coded the cellEndEdit but the thing is the event is triggered after when I click somewhere else in the form. Why is that. How can I make the event to trigger as sson as the value is changed in the datagridview cell.

thanxxxxx

There is a CellValidating and CellValidated event, but these also fire when the user finishes entering data. Its generally common practice to validate the input after the user finishes; i know i would be annoyed if every typo caused an "Invalid Entry" error of some sort to flash up before i could delete my mistake.
What is it you are trying to acheive, perhaps we can suggest a better way to approach it :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.