thornmastr
Programmer
I am almost certain this question has been answered and I am simply misquoting my search string. I have a MSHFlexgrid on a form. The user can select a row to delete from the underlying table which works just fine provided that the user has actually selected a row. However, if the user selects nothing and clicks the delete button, it deletes the last row.
My current way around this is to pop a message box asking the user if they really want this row (MSHFlexGrid1.Text) to be deleted. Pressing YES fires a delete query for that row. Pressing NO ignores the delete request.
How do I tell that a row really has been selected or, more truthfully, how do I tell that no row has been selected.
Thank you for your help.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@earthlink.net
My current way around this is to pop a message box asking the user if they really want this row (MSHFlexGrid1.Text) to be deleted. Pressing YES fires a delete query for that row. Pressing NO ignores the delete request.
How do I tell that a row really has been selected or, more truthfully, how do I tell that no row has been selected.
Thank you for your help.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@earthlink.net