M
mike
I posted before and got the reply below, which really
doesn't help me at all. I really didn't understand what
the responder was talking about
I'd like someone who is a microsoft expert to help me with
some specifics on this problem:
I have to do some specific data verification before saving
a row or group of rows to the database (the data
validation in the datagrid really doesn't help all that
much).
I need to find a way to detect whether a user deletes a
row on the datagrid so that I can delete it in the
database (without using the database as a direct
datasource).
What events (and some specific code would be helpful) can
I use to detect row deletions, even if you have some
around-about code.
Thanks again,
Mike
--------------------------------------------OLD REPLY
Hi Mike,
I'm afraid you'll have to inherit from the DataGrid and
override its WndProc
to handle the Del key upon WM_KEYDOWN notifications. You
can also try
overriding ProcessDialogKey not to deal with raw Win32 API
messages but I am
not sure this will help.
doesn't help me at all. I really didn't understand what
the responder was talking about
I'd like someone who is a microsoft expert to help me with
some specifics on this problem:
I have to do some specific data verification before saving
a row or group of rows to the database (the data
validation in the datagrid really doesn't help all that
much).
I need to find a way to detect whether a user deletes a
row on the datagrid so that I can delete it in the
database (without using the database as a direct
datasource).
What events (and some specific code would be helpful) can
I use to detect row deletions, even if you have some
around-about code.
Thanks again,
Mike
--------------------------------------------OLD REPLY
Hi Mike,
I'm afraid you'll have to inherit from the DataGrid and
override its WndProc
to handle the Del key upon WM_KEYDOWN notifications. You
can also try
overriding ProcessDialogKey not to deal with raw Win32 API
messages but I am
not sure this will help.