Raising an Event

M

matthew menard

I have an event based windows program I'm developing using VB and
Visual Studio 2005. I have a Data Grid View that's on my dialog box,
and I want to do some validation when I select one of the rows in the
Grid View. The best solution is to validate all the entries before I
build the list for the DataGridView, but it takes to long to load when
I do that. So I decided to try to validate the entries as the user
selects an entry. I have some event handlers set up by the tool; one
is the DataGridView1_CellEnter. I wanted to validate the selected
entry in the list in the CellEnter event, but if the entry is not
valid, I want to raise a Cell_Leave event from within the Cell_Enter
event. Can I do that? I wanted to automatically select the next
entry in the list, if the first one is not valid. I hope I'm
explaining it so it's understandable. Any input would be
appreciated. Thanks...
 
C

Cor Ligthert[MVP]

Matthew

An event is something that gives the control to a method.

You can always call a method without that event.
The most simple one to fulfill the signature is

TheMethod(nothing,nothing)

Cor
 
M

matthew menard

Cor,

Thank you, I appreciate your input. That helped tremendously...

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top