|
-
Sep 4th, 2003, 03:24 AM
#1
Thread Starter
Member
Datagrid and deletebutton
What I wonder is if anyone know if it´s possible to trigger any code Before the row dissapreres.
I know how to trigger code when the key is pressed etc. But all that code comes after the row is gone in the datagrid.
Example:
I want to delete the last row in the datagrid and want to know what rowindex that row got.
All I get is the index of the row before.
How should I know if the row that was delteted was the last or the one before?
-
Sep 4th, 2003, 01:13 PM
#2
Addicted Member
In RowDeletion procedure add one single line before other commands :
OldRowIndex=Me.DataGrid1.CurrentRowIndex
'Here OldRowIndex is module level integer variable
-
Sep 5th, 2003, 01:13 AM
#3
Thread Starter
Member
Thanks.
But where do I find the function before rowdeletion?
I have tried to read the row when the key is pressed down but it never enter the function.
why I don´t know.
-
Sep 5th, 2003, 04:05 AM
#4
Addicted Member
write in procedure in which you are deleting row (before row-deletion code)
-
Sep 8th, 2003, 12:21 AM
#5
Thread Starter
Member
deletebutton takes away the post in the datagrid before I can do anything.
But no probs. I have solved it. Just reloaded the datagrid from the dataset and some checks etc...
Thanks for responding parminder
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|