I have a "delete" command button that basically calls PACK and deletes marked Grid items...
I want "delete" to only be enabled when there are items marked in the Grid
the delete grid event lets you know when an Item is marked or unmarked but how do you tell which?
right now If no grid items are marked and the user marks a grid item and then unmarks it... my delete button is enabled each time they click...
how can I tell if there are no marked grid items?
TY
DJ
I tryed this in the delete event but it didnt work...
LPARAMETERS nRecNo
GOTO nRecNo
IIF(DELETED(),thisform.bDelete.Enabled=.T.,thisform.bDelete.Enabled=.F.)
I want "delete" to only be enabled when there are items marked in the Grid
the delete grid event lets you know when an Item is marked or unmarked but how do you tell which?
right now If no grid items are marked and the user marks a grid item and then unmarks it... my delete button is enabled each time they click...
how can I tell if there are no marked grid items?
TY
DJ
I tryed this in the delete event but it didnt work...
LPARAMETERS nRecNo
GOTO nRecNo
IIF(DELETED(),thisform.bDelete.Enabled=.T.,thisform.bDelete.Enabled=.F.)